summaryrefslogtreecommitdiff
path: root/fs/btrfs/space-info.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-01 20:57:37 +0300
committerDavid Sterba <dsterba@suse.com>2019-11-18 14:46:52 +0300
commit4143cb8b6f00910e73a7503fd922211b9f08cf48 (patch)
tree6e61a1f2ac756102f27cf4dc9a0ca19359259c81 /fs/btrfs/space-info.h
parentb105e92755b448efd4800e3415dfeae5ad8054e9 (diff)
downloadlinux-4143cb8b6f00910e73a7503fd922211b9f08cf48.tar.xz
btrfs: add const function attribute
For some reason the attribute is called __attribute_const__ and not __const, marks functions that have no observable effects on program state, IOW not reading pointers, just the arguments and calculating a value. Allows the compiler to do some optimizations, based on -Wsuggest-attribute=const . The effects are rather small, though, about 60 bytes decrese of btrfs.ko. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/space-info.h')
0 files changed, 0 insertions, 0 deletions