Skip to content
Snippets Groups Projects
Commit f3ed577f authored by deen's avatar deen
Browse files

Fix off-by-one error in file length calculation.

Original patch by green.

b=10919
i=adilger
i=tianzy
parent 54ce6665
No related branches found
No related tags found
No related merge requests found
......@@ -435,7 +435,7 @@ struct page *ll_nopage(struct vm_area_struct *vma, unsigned long address,
lov_stripe_lock(lsm);
if (mode == LCK_PW)
obd_adjust_kms(ll_i2dtexp(inode), lsm,
min_t(loff_t, policy.l_extent.end,
min_t(loff_t, policy.l_extent.end + 1,
i_size_read(inode)), 0);
lov_stripe_unlock(lsm);
......
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