aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-11-01 00:45:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-04 14:34:36 -0500
commit6344c433a452b1a05d03a61a6a85d89f793bb7b8 (patch)
treed7fb4505dc394206c1b98bb02dfc58cce16dfe7c /fs
parent64964528b24ea390824f0e5ce9d34b8d39b28cde (diff)
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 'fs')
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index b9c16c3f63f5..30738d200866 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2645,7 +2645,7 @@ dput_out:
2645 2645
2646static void free_mnt_ns(struct mnt_namespace *ns) 2646static void free_mnt_ns(struct mnt_namespace *ns)
2647{ 2647{
2648 proc_free_inum(ns->ns.inum); 2648 ns_free_inum(&ns->ns);
2649 put_user_ns(ns->user_ns); 2649 put_user_ns(ns->user_ns);
2650 kfree(ns); 2650 kfree(ns);
2651} 2651}
@@ -2667,7 +2667,7 @@ static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns)
2667 new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL); 2667 new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL);
2668 if (!new_ns) 2668 if (!new_ns)
2669 return ERR_PTR(-ENOMEM); 2669 return ERR_PTR(-ENOMEM);
2670 ret = proc_alloc_inum(&new_ns->ns.inum); 2670 ret = ns_alloc_inum(&new_ns->ns);
2671 if (ret) { 2671 if (ret) {
2672 kfree(new_ns); 2672 kfree(new_ns);
2673 return ERR_PTR(ret); 2673 return ERR_PTR(ret);