btrfs: call submit_bio_hook directly for metadata pages
authorNikolay Borisov <nborisov@suse.com>
Fri, 18 Sep 2020 13:34:38 +0000 (16:34 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:25 +0000 (12:13 +0200)
commit1b36294a6cd50ee5dcfee71ba5241cbb60f0295e
tree0139f5ccb738bb5a2e75403ac9df269076c8dca3
parent908930f3edad79f7e5e35b7fac09da8c54ca96b5
btrfs: call submit_bio_hook directly for metadata pages

No need to go through a function pointer indirection simply call
submit_bio_hook directly by exporting and renaming the helper to
btrfs_submit_metadata_bio. This makes the code more readable and should
result in somewhat faster code due to no longer paying the price for
specualtive attack mitigations that come with indirect function calls.

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/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.c