From d9987483b914153108d0fc84a6e533f08aec8647 Mon Sep 17 00:00:00 2001
From: tianzy <tianzy>
Date: Mon, 17 Nov 2008 06:27:29 +0000
Subject: [PATCH] Branch b1_6 fix lov_brw_check() calls lov_stripe_intersects()
 with incorrect parameter. written by nikita

---
 lustre/lov/lov_obd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c
index fa1f5b0588..314d61d9ee 100644
--- a/lustre/lov/lov_obd.c
+++ b/lustre/lov/lov_obd.c
@@ -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;
 
-- 
GitLab