diff options
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 17c306bf177a..50695dc5e2ab 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c | |||
@@ -3017,7 +3017,7 @@ static int relocate_file_extent_cluster(struct inode *inode, | |||
3017 | } | 3017 | } |
3018 | } | 3018 | } |
3019 | 3019 | ||
3020 | page_start = (u64)page->index << PAGE_CACHE_SHIFT; | 3020 | page_start = page_offset(page); |
3021 | page_end = page_start + PAGE_CACHE_SIZE - 1; | 3021 | page_end = page_start + PAGE_CACHE_SIZE - 1; |
3022 | 3022 | ||
3023 | lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); | 3023 | lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); |