diff options
| author | 2021-07-26 14:15:19 +0200 | |
|---|---|---|
| committer | 2021-08-23 13:19:03 +0200 | |
| commit | 500a44c9b301ae1844e38606c4bff4f15c174fb0 (patch) | |
| tree | d5abfc76111c51606351f77a6f12f92d49f25de6 /fs/btrfs/compression.c | |
| parent | btrfs: tree-checker: add missing stripe checks for raid1c3/4 profiles (diff) | |
| download | wireguard-linux-500a44c9b301ae1844e38606c4bff4f15c174fb0.tar.xz wireguard-linux-500a44c9b301ae1844e38606c4bff4f15c174fb0.zip | |
btrfs: uninline btrfs_bg_flags_to_raid_index
The helper does a simple translation from block group flags to index to
the btrfs_raid_array table. There's no apparent reason to inline the
function, the translation happens usually once per function and is not
called in a loop.
Making it a proper function saves quite some binary code (x86_64,
release config):
text data bss dec hex filename
1164011 19253 14912 1198176 124860 pre/btrfs.ko
1161559 19253 14912 1195724 123ecc post/btrfs.ko
DELTA: -2451
Also add the const attribute as there are no side effects, this could
help compiler to optimize a few things without the function body.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions
