summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-07-18 19:28:09 +0200
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:56 +0200
commit00032d38eaa89c76de7d9c1ae6de8c48c14edd74 (patch)
tree5bc41e418c14cd74ccf1ec5e80eaa4308aab9d3e /fs/btrfs/extent_io.c
parent05912a3c04ebca217507b4323b679c60eda4ac11 (diff)
downloadlinux-stable-00032d38eaa89c76de7d9c1ae6de8c48c14edd74.tar.gz
linux-stable-00032d38eaa89c76de7d9c1ae6de8c48c14edd74.tar.bz2
linux-stable-00032d38eaa89c76de7d9c1ae6de8c48c14edd74.zip
btrfs: drop extent_io_ops::merge_bio_hook callback
The data and metadata callback implementation both use the same function. We can remove the call indirection completely. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 7a19437c6eda..20af0efd7c17 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2784,8 +2784,8 @@ static int submit_extent_page(unsigned int opf, struct extent_io_tree *tree,
else
contig = bio_end_sector(bio) == sector;
- if (tree->ops && tree->ops->merge_bio_hook(page, offset,
- page_size, bio, bio_flags))
+ if (tree->ops && btrfs_merge_bio_hook(page, offset, page_size,
+ bio, bio_flags))
can_merge = false;
if (prev_bio_flags != bio_flags || !contig || !can_merge ||