btrfs: call submit_bio_hook directly in submit_one_bio
authorNikolay Borisov <nborisov@suse.com>
Fri, 18 Sep 2020 13:34:35 +0000 (16:34 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:24 +0000 (12:13 +0200)
commitcd0537449c275ca7da6f6e3ea2389ae5225c6b4e
tree00f8ec609db26e02e7004980bfc2ce53fad0ee5d
parent1f03d9cfda53d86e7822bf0dd5f0ef5d8fa6d1ad
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>
fs/btrfs/extent_io.c