Skip to content
Snippets Groups Projects
Commit 287741d0 authored by Phil Schwan's avatar Phil Schwan
Browse files

Fix a fencepost I was pretty sure I had already fixed (I checked; the

other places were still fixed).  NB: a lock on [x,y] protects a KMS of
up to y+1 bytes.
parent 71c9168c
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment