Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix off-by-one error in file length calculation.
[fs/lustre-release.git]
/
lustre
/
llite
/
llite_mmap.c
diff --git
a/lustre/llite/llite_mmap.c
b/lustre/llite/llite_mmap.c
index
e45f84d
..
40a89a5
100644
(file)
--- a/
lustre/llite/llite_mmap.c
+++ b/
lustre/llite/llite_mmap.c
@@
-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);