summaryrefslogtreecommitdiffstats
path: root/fs/coda
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2023-03-10 13:48:17 -0800
committerLuis Chamberlain <mcgrof@kernel.org>2023-04-13 11:49:35 -0700
commit1119aaa823e6cc35f2e8c8793cfa58d923a15c1b (patch)
tree5e68b4ea20f893f9d83b3cf237c82806fe763f5b /fs/coda
parent3d379b8d0de0492e86b93a1b8cd07403825fe23d (diff)
downloadlinux-stable-1119aaa823e6cc35f2e8c8793cfa58d923a15c1b.tar.gz
linux-stable-1119aaa823e6cc35f2e8c8793cfa58d923a15c1b.tar.bz2
linux-stable-1119aaa823e6cc35f2e8c8793cfa58d923a15c1b.zip
coda: simplify one-level sysctl registration for coda_table
There is no need to declare an extra tables to just create directory, this can be easily be done with a prefix path with register_sysctl(). Simplify this registration. Acked-by: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'fs/coda')
-rw-r--r--fs/coda/sysctl.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index fda3b702b1c5..a247c14aaab7 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -39,19 +39,10 @@ static struct ctl_table coda_table[] = {
{}
};
-static struct ctl_table fs_table[] = {
- {
- .procname = "coda",
- .mode = 0555,
- .child = coda_table
- },
- {}
-};
-
void coda_sysctl_init(void)
{
if ( !fs_table_header )
- fs_table_header = register_sysctl_table(fs_table);
+ fs_table_header = register_sysctl("coda", coda_table);
}
void coda_sysctl_clean(void)