Merge tag 'nfsd-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
[sfrench/cifs-2.6.git] / fs / lockd / svc.c
index fe2f6dd9a8743b26022cacbaf47e354219efbcc9..04ba95b83d16832680b03cfc3e096987a55d7f19 100644 (file)
@@ -510,24 +510,6 @@ static struct ctl_table nlm_sysctls[] = {
        { }
 };
 
-static struct ctl_table nlm_sysctl_dir[] = {
-       {
-               .procname       = "nfs",
-               .mode           = 0555,
-               .child          = nlm_sysctls,
-       },
-       { }
-};
-
-static struct ctl_table nlm_sysctl_root[] = {
-       {
-               .procname       = "fs",
-               .mode           = 0555,
-               .child          = nlm_sysctl_dir,
-       },
-       { }
-};
-
 #endif /* CONFIG_SYSCTL */
 
 /*
@@ -644,7 +626,7 @@ static int __init init_nlm(void)
 
 #ifdef CONFIG_SYSCTL
        err = -ENOMEM;
-       nlm_sysctl_table = register_sysctl_table(nlm_sysctl_root);
+       nlm_sysctl_table = register_sysctl("fs/nfs", nlm_sysctls);
        if (nlm_sysctl_table == NULL)
                goto err_sysctl;
 #endif