]> 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)
commit78072098914dc27038b9f28e461b02632e459a85
tree0139f5ccb738bb5a2e75403ac9df269076c8dca3
parentc12c7207ad3dd22d40c633c1d33a7cc5afe4cb9e
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