diff options
author | David Sterba <dsterba@suse.com> | 2018-02-19 11:24:18 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 09:09:39 -0400 |
commit | e67c718b5b9a306bde7e966be7b4ca48fa063d73 (patch) | |
tree | 5b4905cba33483869094404c531cba4d30767780 /fs/btrfs/delayed-ref.c | |
parent | ffc5a3794f9779c1a09e18e6d75bb6cc22b37523 (diff) |
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/delayed-ref.c')
-rw-r--r-- | fs/btrfs/delayed-ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index 7ab5e0128f0c..03bdf355107a 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c | |||
@@ -930,7 +930,7 @@ btrfs_find_delayed_ref_head(struct btrfs_delayed_ref_root *delayed_refs, u64 byt | |||
930 | return find_ref_head(&delayed_refs->href_root, bytenr, 0); | 930 | return find_ref_head(&delayed_refs->href_root, bytenr, 0); |
931 | } | 931 | } |
932 | 932 | ||
933 | void btrfs_delayed_ref_exit(void) | 933 | void __cold btrfs_delayed_ref_exit(void) |
934 | { | 934 | { |
935 | kmem_cache_destroy(btrfs_delayed_ref_head_cachep); | 935 | kmem_cache_destroy(btrfs_delayed_ref_head_cachep); |
936 | kmem_cache_destroy(btrfs_delayed_tree_ref_cachep); | 936 | kmem_cache_destroy(btrfs_delayed_tree_ref_cachep); |