* [PATCH 2/2] ipcns 2/2: extract create_ipc_ns()
@ 2009-05-03 23:26 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2009-05-03 23:26 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, containers
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>
---
ipc/namespace.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/ipc/namespace.c b/ipc/namespace.c
index a56fc59..231ee53 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();
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-03 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-03 23:26 [PATCH 2/2] ipcns 2/2: extract create_ipc_ns() Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®