]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/btrfs/extent_io.h
btrfs: make clear_extent_bit helpers static inline
authorDavid Sterba <dsterba@suse.com>
Thu, 3 Dec 2015 13:08:11 +0000 (14:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 3 Dec 2015 13:17:30 +0000 (14:17 +0100)
commite83b1d91f872a4cf7bf0d3528044fc9e43260e2b
treeb3bfff179958a9fd28bb1aac4ec76967564e7343
parentc63179556af1335585e53cd8a23da40bf69cb2e2
btrfs: make clear_extent_bit helpers static inline

The funcions just wrap the clear_extent_bit API and generate function
calls. This increases stack consumption and may negatively affect
performance due to icache misses. We can simply make the helpers static
inline and keep the type checking and API untouched. The code slightly
decreases:

   text    data     bss     dec     hex filename
 938667   43670   23144 1005481   f57a9 fs/btrfs/btrfs.ko.before
 939651   43670   23144 1006465   f5b81 fs/btrfs/btrfs.ko.after

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h