diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-15 18:29:37 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-02-01 11:49:47 -0500 |
commit | 64a167011bcabc1e855658387c8a4464b71f3138 (patch) | |
tree | 768b39580c96931f1a47fdc0a8959e3e473df5a6 /fs/btrfs/compression.c | |
parent | 3c911608085bf2d5a0822c418129f96a2a89d1b5 (diff) |
Btrfs: add rw argument to merge_bio_hook()
We'll want to merge writes so they can fill a full RAID[56] stripe, but
not necessarily reads.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
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 |