diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index ece8d1e26b5e..69dce50aabd2 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -829,7 +829,9 @@ int btrfs_write_tree_block(struct extent_buffer *buf) | |||
829 | int btrfs_wait_tree_block_writeback(struct extent_buffer *buf) | 829 | int btrfs_wait_tree_block_writeback(struct extent_buffer *buf) |
830 | { | 830 | { |
831 | return btrfs_wait_on_page_writeback_range(buf->first_page->mapping, | 831 | return btrfs_wait_on_page_writeback_range(buf->first_page->mapping, |
832 | buf->start, buf->start + buf->len - 1); | 832 | buf->start >> PAGE_CACHE_SHIFT, |
833 | (buf->start + buf->len - 1) >> | ||
834 | PAGE_CACHE_SHIFT); | ||
833 | } | 835 | } |
834 | 836 | ||
835 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, | 837 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, |