mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
ffc5a3794f
commit
e67c718b5b
23 changed files with 29 additions and 24 deletions
|
@ -73,7 +73,7 @@ int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
|
|||
int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr);
|
||||
|
||||
int __init btrfs_prelim_ref_init(void);
|
||||
void btrfs_prelim_ref_exit(void);
|
||||
void __cold btrfs_prelim_ref_exit(void);
|
||||
|
||||
struct prelim_ref {
|
||||
struct rb_node rbnode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue