summaryrefslogtreecommitdiff
path: root/fs/netfs/fscache_main.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2023-11-21 18:43:52 +0300
committerDavid Howells <dhowells@redhat.com>2023-12-24 18:08:48 +0300
commit7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab (patch)
tree30357b01626c21f2c231823d099c69e84eceb943 /fs/netfs/fscache_main.c
parent4498a8eccc97de3d65f876b6fdeddb439ef73abc (diff)
downloadlinux-7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab.tar.xz
netfs, fscache: Move /proc/fs/fscache to /proc/fs/netfs and put in a symlink
Rename /proc/fs/fscache to "netfs" and make a symlink from fscache to that. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: Christian Brauner <christian@brauner.io> cc: linux-fsdevel@vger.kernel.org cc: linux-cachefs@redhat.com
Diffstat (limited to 'fs/netfs/fscache_main.c')
-rw-r--r--fs/netfs/fscache_main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/netfs/fscache_main.c b/fs/netfs/fscache_main.c
index 00600a4d9ce5..42e98bb523e3 100644
--- a/fs/netfs/fscache_main.c
+++ b/fs/netfs/fscache_main.c
@@ -62,7 +62,7 @@ unsigned int fscache_hash(unsigned int salt, const void *data, size_t len)
/*
* initialise the fs caching module
*/
-static int __init fscache_init(void)
+int __init fscache_init(void)
{
int ret = -ENOMEM;
@@ -94,12 +94,10 @@ error_wq:
return ret;
}
-fs_initcall(fscache_init);
-
/*
* clean up on module removal
*/
-static void __exit fscache_exit(void)
+void __exit fscache_exit(void)
{
_enter("");
@@ -108,5 +106,3 @@ static void __exit fscache_exit(void)
destroy_workqueue(fscache_wq);
pr_notice("FS-Cache unloaded\n");
}
-
-module_exit(fscache_exit);