Whamcloud - gitweb
Branch b1_6
authortianzy <tianzy>
Mon, 17 Nov 2008 06:27:29 +0000 (06:27 +0000)
committertianzy <tianzy>
Mon, 17 Nov 2008 06:27:29 +0000 (06:27 +0000)
fix lov_brw_check() calls lov_stripe_intersects() with incorrect parameter.
written by nikita

lustre/lov/lov_obd.c

index fa1f5b0..314d61d 100644 (file)
@@ -1649,7 +1649,7 @@ static int lov_brw_check(struct lov_obd *lov, struct obd_info *lov_oinfo,
                 obd_off start, end;
 
                 if (!lov_stripe_intersects(lov_oinfo->oi_md, i, pga[i].off,
-                                           pga[i].off + pga[i].count,
+                                           pga[i].off + pga[i].count - 1,
                                            &start, &end))
                         continue;