summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-09-18 16:34:35 +0300
committerDavid Sterba <dsterba@suse.com>2020-10-07 13:13:24 +0300
commitcd0537449c275ca7da6f6e3ea2389ae5225c6b4e (patch)
tree00f8ec609db26e02e7004980bfc2ce53fad0ee5d /fs/btrfs
parent1f03d9cfda53d86e7822bf0dd5f0ef5d8fa6d1ad (diff)
downloadlinux-cd0537449c275ca7da6f6e3ea2389ae5225c6b4e.tar.xz
btrfs: call submit_bio_hook directly in submit_one_bio
BTRFS has 2 inode types (for the purposes of the code in submit_one_bio) - ordinary data inodes (including the freespace inode) and the btree inode. Both of these implement submit_bio_hook so btrfsic_submit_bio can never be called from submit_one_bio so just remove it. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent_io.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 6cee6b611d0c..1a96251ade1f 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -168,11 +168,8 @@ int __must_check submit_one_bio(struct bio *bio, int mirror_num,
bio->bi_private = NULL;
- if (tree->ops)
- ret = tree->ops->submit_bio_hook(tree->private_data, bio,
- mirror_num, bio_flags);
- else
- btrfsic_submit_bio(bio);
+ ret = tree->ops->submit_bio_hook(tree->private_data, bio, mirror_num,
+ bio_flags);
return blk_status_to_errno(ret);
}