aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2017-11-02 17:21:50 -0600
committerDavid Sterba <[email protected]>2018-01-22 16:08:11 +0100
commitf5c29bd9dbd3e90e03ab7697ecc373b49394e62e (patch)
treed09c430638f432fefa37bc80974c791a470d1b85 /fs/btrfs/inode.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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 2bab93f20328..c8a3e84d7114 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9569,7 +9569,7 @@ void btrfs_destroy_cachep(void)
kmem_cache_destroy(btrfs_free_space_cachep);
}
-int btrfs_init_cachep(void)
+int __init btrfs_init_cachep(void)
{
btrfs_inode_cachep = kmem_cache_create("btrfs_inode",
sizeof(struct btrfs_inode), 0,