sysctl: Implement retire_sysctl_set
This adds a small helper retire_sysctl_set to remove the intimate knowledge about the how a sysctl_set is implemented from net/sysct_net.c Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
@@ -82,7 +82,7 @@ static int __net_init sysctl_net_init(struct net *net)
|
||||
|
||||
static void __net_exit sysctl_net_exit(struct net *net)
|
||||
{
|
||||
WARN_ON(!list_empty(&net->sysctls.list));
|
||||
retire_sysctl_set(&net->sysctls);
|
||||
}
|
||||
|
||||
static struct pernet_operations sysctl_pernet_ops = {
|
||||
|
||||
Reference in New Issue
Block a user