aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-01-23 00:10:21 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-01-24 19:37:55 -0500
commitbd295b56cfae85f2dd6c2b03951480c91e6d08f3 (patch)
tree7f8667dbf6c297897b6427d228885d565e263c66 /net
parent97324cd804b7b9fb6044e114329335db79810425 (diff)
sysctl: Remove the unnecessary sysctl_set parent concept.
In sysctl_net register the two networking roots in the proper order. In register_sysctl walk the sysctl sets in the reverse order of the sysctl roots. Remove parent from ctl_table_set and setup_sysctl_set as it is no longer needed. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net')
-rw-r--r--net/sysctl_net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sysctl_net.c b/net/sysctl_net.c
index ffd67a6515a3..07c6b879c8b2 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -75,7 +75,6 @@ static struct ctl_table_root net_sysctl_ro_root = {
75static int __net_init sysctl_net_init(struct net *net) 75static int __net_init sysctl_net_init(struct net *net)
76{ 76{
77 setup_sysctl_set(&net->sysctls, 77 setup_sysctl_set(&net->sysctls,
78 &net_sysctl_ro_root.default_set,
79 is_seen); 78 is_seen);
80 return 0; 79 return 0;
81} 80}
@@ -96,9 +95,9 @@ static __init int net_sysctl_init(void)
96 ret = register_pernet_subsys(&sysctl_pernet_ops); 95 ret = register_pernet_subsys(&sysctl_pernet_ops);
97 if (ret) 96 if (ret)
98 goto out; 97 goto out;
99 register_sysctl_root(&net_sysctl_root); 98 setup_sysctl_set(&net_sysctl_ro_root.default_set, NULL);
100 setup_sysctl_set(&net_sysctl_ro_root.default_set, NULL, NULL);
101 register_sysctl_root(&net_sysctl_ro_root); 99 register_sysctl_root(&net_sysctl_ro_root);
100 register_sysctl_root(&net_sysctl_root);
102out: 101out:
103 return ret; 102 return ret;
104} 103}