]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd805d5aa3966be946706c754d9981ff049fed15e
tree0139f5ccb738bb5a2e75403ac9df269076c8dca3
parent58231625356474bd871f3af40fad015128663d97
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