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>
This commit is contained in:
committed by
Linus Torvalds
parent
64424289dd
commit
612ce478fa
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#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;
|
struct ipc_namespace *ns;
|
||||||
int err;
|
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 *copy_ipcs(unsigned long flags, struct ipc_namespace *ns)
|
||||||
{
|
{
|
||||||
struct ipc_namespace *new_ns;
|
|
||||||
|
|
||||||
if (!(flags & CLONE_NEWIPC))
|
if (!(flags & CLONE_NEWIPC))
|
||||||
return get_ipc_ns(ns);
|
return get_ipc_ns(ns);
|
||||||
|
return create_ipc_ns();
|
||||||
new_ns = clone_ipc_ns(ns);
|
|
||||||
|
|
||||||
return new_ns;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user