diff options
author | Kirill Korotaev <dev@sw.ru> | 2006-12-08 05:37:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:51 -0500 |
commit | 6b3286ed1169d74fea401367d6d4d6c6ec758a81 (patch) | |
tree | faf5beddb797875bb92855f8606735478267959a /kernel/nsproxy.c | |
parent | 1ec320afdc9552c92191d5f89fcd1ebe588334ca (diff) |
[PATCH] rename struct namespace to struct mnt_namespace
Rename 'struct namespace' to 'struct mnt_namespace' to avoid confusion with
other namespaces being developped for the containers : pid, uts, ipc, etc.
'namespace' variables and attributes are also renamed to 'mnt_ns'
Signed-off-by: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/nsproxy.c')
-rw-r--r-- | kernel/nsproxy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 674aceb7335a..bd9cb435dfe0 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/version.h> | 17 | #include <linux/version.h> |
18 | #include <linux/nsproxy.h> | 18 | #include <linux/nsproxy.h> |
19 | #include <linux/init_task.h> | 19 | #include <linux/init_task.h> |
20 | #include <linux/namespace.h> | 20 | #include <linux/mnt_namespace.h> |
21 | #include <linux/utsname.h> | 21 | #include <linux/utsname.h> |
22 | 22 | ||
23 | struct nsproxy init_nsproxy = INIT_NSPROXY(init_nsproxy); | 23 | struct nsproxy init_nsproxy = INIT_NSPROXY(init_nsproxy); |
@@ -60,8 +60,8 @@ struct nsproxy *dup_namespaces(struct nsproxy *orig) | |||
60 | struct nsproxy *ns = clone_namespaces(orig); | 60 | struct nsproxy *ns = clone_namespaces(orig); |
61 | 61 | ||
62 | if (ns) { | 62 | if (ns) { |
63 | if (ns->namespace) | 63 | if (ns->mnt_ns) |
64 | get_namespace(ns->namespace); | 64 | get_mnt_ns(ns->mnt_ns); |
65 | if (ns->uts_ns) | 65 | if (ns->uts_ns) |
66 | get_uts_ns(ns->uts_ns); | 66 | get_uts_ns(ns->uts_ns); |
67 | if (ns->ipc_ns) | 67 | if (ns->ipc_ns) |
@@ -97,7 +97,7 @@ int copy_namespaces(int flags, struct task_struct *tsk) | |||
97 | 97 | ||
98 | tsk->nsproxy = new_ns; | 98 | tsk->nsproxy = new_ns; |
99 | 99 | ||
100 | err = copy_namespace(flags, tsk); | 100 | err = copy_mnt_ns(flags, tsk); |
101 | if (err) | 101 | if (err) |
102 | goto out_ns; | 102 | goto out_ns; |
103 | 103 | ||
@@ -117,8 +117,8 @@ out_ipc: | |||
117 | if (new_ns->uts_ns) | 117 | if (new_ns->uts_ns) |
118 | put_uts_ns(new_ns->uts_ns); | 118 | put_uts_ns(new_ns->uts_ns); |
119 | out_uts: | 119 | out_uts: |
120 | if (new_ns->namespace) | 120 | if (new_ns->mnt_ns) |
121 | put_namespace(new_ns->namespace); | 121 | put_mnt_ns(new_ns->mnt_ns); |
122 | out_ns: | 122 | out_ns: |
123 | tsk->nsproxy = old_ns; | 123 | tsk->nsproxy = old_ns; |
124 | kfree(new_ns); | 124 | kfree(new_ns); |
@@ -127,8 +127,8 @@ out_ns: | |||
127 | 127 | ||
128 | void free_nsproxy(struct nsproxy *ns) | 128 | void free_nsproxy(struct nsproxy *ns) |
129 | { | 129 | { |
130 | if (ns->namespace) | 130 | if (ns->mnt_ns) |
131 | put_namespace(ns->namespace); | 131 | put_mnt_ns(ns->mnt_ns); |
132 | if (ns->uts_ns) | 132 | if (ns->uts_ns) |
133 | put_uts_ns(ns->uts_ns); | 133 | put_uts_ns(ns->uts_ns); |
134 | if (ns->ipc_ns) | 134 | if (ns->ipc_ns) |