aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-10-31 22:56:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-04 14:31:00 -0500
commit435d5f4bb2ccba3b791d9ef61d2590e30b8e806e (patch)
treed482ef15334a703bbe406dab021880ce3d320870 /ipc
parentcac7f2429872d3733dc3f9915857b1691da2eb2f (diff)
common object embedded into various struct ....ns
for now - just move corresponding ->proc_inum instances over there Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/msgutil.c2
-rw-r--r--ipc/namespace.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/ipc/msgutil.c b/ipc/msgutil.c
index 7e7095974d54..5930471a2902 100644
--- a/ipc/msgutil.c
+++ b/ipc/msgutil.c
@@ -31,7 +31,7 @@ DEFINE_SPINLOCK(mq_lock);
31struct ipc_namespace init_ipc_ns = { 31struct ipc_namespace init_ipc_ns = {
32 .count = ATOMIC_INIT(1), 32 .count = ATOMIC_INIT(1),
33 .user_ns = &init_user_ns, 33 .user_ns = &init_user_ns,
34 .proc_inum = PROC_IPC_INIT_INO, 34 .ns.inum = PROC_IPC_INIT_INO,
35}; 35};
36 36
37atomic_t nr_ipc_ns = ATOMIC_INIT(1); 37atomic_t nr_ipc_ns = ATOMIC_INIT(1);
diff --git a/ipc/namespace.c b/ipc/namespace.c
index b54468e48e32..177fa9db391d 100644
--- a/ipc/namespace.c
+++ b/ipc/namespace.c
@@ -26,7 +26,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
26 if (ns == NULL) 26 if (ns == NULL)
27 return ERR_PTR(-ENOMEM); 27 return ERR_PTR(-ENOMEM);
28 28
29 err = proc_alloc_inum(&ns->proc_inum); 29 err = proc_alloc_inum(&ns->ns.inum);
30 if (err) { 30 if (err) {
31 kfree(ns); 31 kfree(ns);
32 return ERR_PTR(err); 32 return ERR_PTR(err);
@@ -35,7 +35,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
35 atomic_set(&ns->count, 1); 35 atomic_set(&ns->count, 1);
36 err = mq_init_ns(ns); 36 err = mq_init_ns(ns);
37 if (err) { 37 if (err) {
38 proc_free_inum(ns->proc_inum); 38 proc_free_inum(ns->ns.inum);
39 kfree(ns); 39 kfree(ns);
40 return ERR_PTR(err); 40 return ERR_PTR(err);
41 } 41 }
@@ -119,7 +119,7 @@ static void free_ipc_ns(struct ipc_namespace *ns)
119 */ 119 */
120 ipcns_notify(IPCNS_REMOVED); 120 ipcns_notify(IPCNS_REMOVED);
121 put_user_ns(ns->user_ns); 121 put_user_ns(ns->user_ns);
122 proc_free_inum(ns->proc_inum); 122 proc_free_inum(ns->ns.inum);
123 kfree(ns); 123 kfree(ns);
124} 124}
125 125
@@ -186,7 +186,7 @@ static unsigned int ipcns_inum(void *vp)
186{ 186{
187 struct ipc_namespace *ns = vp; 187 struct ipc_namespace *ns = vp;
188 188
189 return ns->proc_inum; 189 return ns->ns.inum;
190} 190}
191 191
192const struct proc_ns_operations ipcns_operations = { 192const struct proc_ns_operations ipcns_operations = {