path: root/fs/proc/proc_sysctl.c
diff options
authorLuis Chamberlain <>2022-01-21 22:13:27 -0800
committerLinus Torvalds <>2022-01-22 08:33:36 +0200
commitab171b952c6e065779687b44041038efdadb3915 (patch)
treeef912c1e2e65a6aebb8cf564c3af36551b212961 /fs/proc/proc_sysctl.c
parent51cb8dfc5a5c39e6c70376b9dc9a14d624a9d271 (diff)
fs: move namespace sysctls and declare fs base directory
This moves the namespace sysctls to its own file as part of the kernel/sysctl.c spring cleaning Since we have now removed all sysctls for "fs", we now have to declare it on the filesystem code, we do that using the new helper, which reduces boiler plate code. We rename init_fs_shared_sysctls() to init_fs_sysctls() to reflect that now fs/sysctls.c is taking on the burden of being the first to register the base directory as well. Lastly, since init code will load in the order in which we link it we have to move the sysctl code to be linked in early, so that its early init routine runs prior to other fs code. This way, other filesystem code can register their own sysctls using the helpers after this: * register_sysctl_init() * register_sysctl() Link: Signed-off-by: Luis Chamberlain <> Cc: Al Viro <> Cc: Anil S Keshavamurthy <> Cc: Antti Palosaari <> Cc: Christian Brauner <> Cc: "David S. Miller" <> Cc: Eric Biederman <> Cc: Eric Biggers <> Cc: Iurii Zaikin <> Cc: Kees Cook <> Cc: Lukas Middendorf <> Cc: Masami Hiramatsu <> Cc: "Naveen N. Rao" <> Cc: Stephen Kitt <> Cc: Xiaoming Ni <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
0 files changed, 0 insertions, 0 deletions