diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-01 05:45:45 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-12-04 20:34:36 +0100 |
commit | 6344c433a452b1a05d03a61a6a85d89f793bb7b8 (patch) | |
tree | d7fb4505dc394206c1b98bb02dfc58cce16dfe7c /net | |
parent | make proc_ns_operations work with struct ns_common * instead of void * (diff) | |
download | linux-6344c433a452b1a05d03a61a6a85d89f793bb7b8.tar.xz linux-6344c433a452b1a05d03a61a6a85d89f793bb7b8.zip |
new helpers: ns_alloc_inum/ns_free_inum
take struct ns_common *, for now simply wrappers around proc_{alloc,free}_inum()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/net_namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 2161f0979fce..da775f53f3fd 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -386,12 +386,12 @@ EXPORT_SYMBOL_GPL(get_net_ns_by_pid); static __net_init int net_ns_net_init(struct net *net) { - return proc_alloc_inum(&net->ns.inum); + return ns_alloc_inum(&net->ns); } static __net_exit void net_ns_net_exit(struct net *net) { - proc_free_inum(net->ns.inum); + ns_free_inum(&net->ns); } static struct pernet_operations __net_initdata net_ns_ops = { |