Whamcloud - gitweb
Fix a fencepost I was pretty sure I had already fixed (I checked; the
authorphil <phil>
Tue, 24 Feb 2004 07:25:06 +0000 (07:25 +0000)
committerphil <phil>
Tue, 24 Feb 2004 07:25:06 +0000 (07:25 +0000)
other places were still fixed).  NB: a lock on [x,y] protects a KMS of
up to y+1 bytes.

lustre/lov/lov_obd.c

index e9c8c12..7d657f2 100644 (file)
@@ -2079,7 +2079,7 @@ static int lov_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm,
                         loi->loi_rss = tmp;
                         // Extend KMS up to the end of this lock, and no further
                         if (tmp > lock->l_policy_data.l_extent.end)
-                                tmp = lock->l_policy_data.l_extent.end;
+                                tmp = lock->l_policy_data.l_extent.end + 1;
                         if (tmp > loi->loi_kms) {
                                 CDEBUG(D_INODE, "lock acquired, setting rss="
                                        LPU64", kms="LPU64"\n", loi->loi_rss,