summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-11-02 17:21:50 -0600
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:11 +0100
commitf5c29bd9dbd3e90e03ab7697ecc373b49394e62e (patch)
treed09c430638f432fefa37bc80974c791a470d1b85 /fs/btrfs/sysfs.c
parentc74a0b0237c47806e43c1dc6f875c88fb9ee2525 (diff)
downloadop-kernel-dev-f5c29bd9dbd3e90e03ab7697ecc373b49394e62e.zip
op-kernel-dev-f5c29bd9dbd3e90e03ab7697ecc373b49394e62e.tar.gz
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/sysfs.c')
-rw-r--r--fs/btrfs/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
index a28bba8..a8bafed 100644
--- a/fs/btrfs/sysfs.c
+++ b/fs/btrfs/sysfs.c
@@ -897,7 +897,7 @@ static int btrfs_init_debugfs(void)
return 0;
}
-int btrfs_init_sysfs(void)
+int __init btrfs_init_sysfs(void)
{
int ret;
OpenPOWER on IntegriCloud