diff options
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 94ab2f80e7e3..15b94089abc4 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c | |||
@@ -372,7 +372,7 @@ int btrfs_submit_compressed_write(struct inode *inode, u64 start, | |||
372 | page = compressed_pages[pg_index]; | 372 | page = compressed_pages[pg_index]; |
373 | page->mapping = inode->i_mapping; | 373 | page->mapping = inode->i_mapping; |
374 | if (bio->bi_size) | 374 | if (bio->bi_size) |
375 | ret = io_tree->ops->merge_bio_hook(page, 0, | 375 | ret = io_tree->ops->merge_bio_hook(WRITE, page, 0, |
376 | PAGE_CACHE_SIZE, | 376 | PAGE_CACHE_SIZE, |
377 | bio, 0); | 377 | bio, 0); |
378 | else | 378 | else |
@@ -655,7 +655,7 @@ int btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, | |||
655 | page->index = em_start >> PAGE_CACHE_SHIFT; | 655 | page->index = em_start >> PAGE_CACHE_SHIFT; |
656 | 656 | ||
657 | if (comp_bio->bi_size) | 657 | if (comp_bio->bi_size) |
658 | ret = tree->ops->merge_bio_hook(page, 0, | 658 | ret = tree->ops->merge_bio_hook(READ, page, 0, |
659 | PAGE_CACHE_SIZE, | 659 | PAGE_CACHE_SIZE, |
660 | comp_bio, 0); | 660 | comp_bio, 0); |
661 | else | 661 | else |