Whamcloud - gitweb
Branch: b1_4
authoradilger <adilger>
Wed, 23 Feb 2005 23:25:37 +0000 (23:25 +0000)
committeradilger <adilger>
Wed, 23 Feb 2005 23:25:37 +0000 (23:25 +0000)
Something I noticed when looking at the OST AMD patch.  We should check
the "ost" index and not the "stripe" index.

lustre/lov/lov_obd.c

index dc6ce4f..70e9690 100644 (file)
@@ -863,7 +863,7 @@ static int lov_brw_check(struct lov_obd *lov, struct obdo *oa,
                         CDEBUG(D_HA, "lov idx %d inactive\n", ost);
                         return -EIO;
                 }
-                rc = obd_brw(OBD_BRW_CHECK, lov->tgts[stripe].ltd_exp, oa,
+                rc = obd_brw(OBD_BRW_CHECK, lov->tgts[ost].ltd_exp, oa,
                              NULL, 1, &pga[i], NULL);
                 if (rc)
                         break;