summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-ref.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-11-02 19:21:50 -0400
committerDavid Sterba <dsterba@suse.com>2018-01-22 10:08:11 -0500
commitf5c29bd9dbd3e90e03ab7697ecc373b49394e62e (patch)
treed09c430638f432fefa37bc80974c791a470d1b85 /fs/btrfs/delayed-ref.c
parentc74a0b0237c47806e43c1dc6f875c88fb9ee2525 (diff)
Btrfs: add __init macro to btrfs init functions
Adding __init macro gives kernel a hint that this function is only used during the initialization phase and its memory resources can be freed up after. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-ref.c')
-rw-r--r--fs/btrfs/delayed-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c
index 83be8f9fd906..a1a40cf382e3 100644
--- a/fs/btrfs/delayed-ref.c
+++ b/fs/btrfs/delayed-ref.c
@@ -937,7 +937,7 @@ void btrfs_delayed_ref_exit(void)
937 kmem_cache_destroy(btrfs_delayed_extent_op_cachep); 937 kmem_cache_destroy(btrfs_delayed_extent_op_cachep);
938} 938}
939 939
940int btrfs_delayed_ref_init(void) 940int __init btrfs_delayed_ref_init(void)
941{ 941{
942 btrfs_delayed_ref_head_cachep = kmem_cache_create( 942 btrfs_delayed_ref_head_cachep = kmem_cache_create(
943 "btrfs_delayed_ref_head", 943 "btrfs_delayed_ref_head",