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
LU-6482 lov: calculate file offset correctly
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_offset.c
diff --git
a/lustre/lov/lov_offset.c
b/lustre/lov/lov_offset.c
index
d325e1c
..
eeb4747
100644
(file)
--- a/
lustre/lov/lov_offset.c
+++ b/
lustre/lov/lov_offset.c
@@
-76,7
+76,7
@@
pgoff_t lov_stripe_pgoff(struct lov_stripe_md *lsm, pgoff_t stripe_index,
{
loff_t offset;
- offset = lov_stripe_size(lsm,
stripe_index << PAGE_CACHE_SHIFT
,
+ offset = lov_stripe_size(lsm,
(stripe_index << PAGE_CACHE_SHIFT) + 1
,
stripe);
return offset >> PAGE_CACHE_SHIFT;
}