net: Convert ipv4_sysctl_ops
These pernet_operations create and destroy sysctl, which are not touched by anybody else. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cb5e3400e7
commit
22769a2a6e
1 changed files with 1 additions and 0 deletions
|
@ -1219,6 +1219,7 @@ static __net_exit void ipv4_sysctl_exit_net(struct net *net)
|
||||||
static __net_initdata struct pernet_operations ipv4_sysctl_ops = {
|
static __net_initdata struct pernet_operations ipv4_sysctl_ops = {
|
||||||
.init = ipv4_sysctl_init_net,
|
.init = ipv4_sysctl_init_net,
|
||||||
.exit = ipv4_sysctl_exit_net,
|
.exit = ipv4_sysctl_exit_net,
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static __init int sysctl_ipv4_init(void)
|
static __init int sysctl_ipv4_init(void)
|
||||||
|
|
Loading…
Reference in a new issue