diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-06-18 01:27:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 22:03:55 +0200 |
commit | 612ce478fac2729ad564ec3f5d3c551674b8e9c2 (patch) | |
tree | a87745acbdac4d4b710006a003287f706a923487 | |
parent | ipcns: remove useless get/put while CLONE_NEWIPC (diff) | |
download | linux-612ce478fac2729ad564ec3f5d3c551674b8e9c2.tar.xz linux-612ce478fac2729ad564ec3f5d3c551674b8e9c2.zip |
ipcns: extract create_ipc_ns()
clone_ipc_ns() is misnamed, it doesn't clone anything and doesn't use
passed parameter. Rename it.
create_ipc_ns() will be used by C/R to create fresh ipcns.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | ipc/namespace.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c index a56fc598a807..231ee5359abf 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c @@ -14,7 +14,7 @@ #include "util.h" -static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns) +static struct ipc_namespace *create_ipc_ns(void) { struct ipc_namespace *ns; int err; @@ -48,14 +48,9 @@ static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns) struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns) { - struct ipc_namespace *new_ns; - if (!(flags & CLONE_NEWIPC)) return get_ipc_ns(ns); - - new_ns = clone_ipc_ns(ns); - - return new_ns; + return create_ipc_ns(); } /* |