aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-02-19 17:24:18 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-26 15:09:39 +0200
commite67c718b5b9a306bde7e966be7b4ca48fa063d73 (patch)
tree5b4905cba33483869094404c531cba4d30767780 /fs/btrfs/compression.h
parentbtrfs: add (the only possible) __exit annotation (diff)
downloadlinux-dev-e67c718b5b9a306bde7e966be7b4ca48fa063d73.tar.xz
linux-dev-e67c718b5b9a306bde7e966be7b4ca48fa063d73.zip
btrfs: add more __cold annotations
The __cold functions are placed to a special section, as they're expected to be called rarely. This could help i-cache prefetches or help compiler to decide which branches are more/less likely to be taken without any other annotations needed. Though we can't add more __exit annotations, it's still possible to add __cold (that's also added with __exit). That way the following function categories are tagged: - printf wrappers, error messages - exit helpers Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 677fa4aa0bd7..ce796557a918 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -76,7 +76,7 @@ struct compressed_bio {
};
void __init btrfs_init_compress(void);
-void btrfs_exit_compress(void);
+void __cold btrfs_exit_compress(void);
int btrfs_compress_pages(unsigned int type_level, struct address_space *mapping,
u64 start, struct page **pages,