]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/btrfs/extent_io.h
btrfs: make set_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:08:11 +0000 (14:08 +0100)
commitc63179556af1335585e53cd8a23da40bf69cb2e2
treedb6b71915e0fe9ea9e86a020fe0d42e06c032f67
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
btrfs: make set_extent_bit helpers static inline

The funcions just wrap the set_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
increases:

   text    data     bss     dec     hex filename
 938427   43670   23144 1005241   f56b9 fs/btrfs/btrfs.ko.before
 938667   43670   23144 1005481   f57a9 fs/btrfs/btrfs.ko

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