projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6442428
)
ipcns: extract create_ipc_ns()
author
Alexey Dobriyan
<
[email protected]
>
Wed, 17 Jun 2009 23:27:55 +0000
(16:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 18 Jun 2009 20:03:55 +0000
(13:03 -0700)
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 <
[email protected]
>
Acked-by: Serge Hallyn <
[email protected]
>
Reviewed-by: WANG Cong <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
ipc/namespace.c
patch
|
blob
|
history
diff --git
a/ipc/namespace.c
b/ipc/namespace.c
index a56fc598a8071e7ca5c784e35d22c40f00d5e1f7..231ee5359abfb7f69a0fdef6438889c689fb864f 100644
(file)
--- a/
ipc/namespace.c
+++ b/
ipc/namespace.c
@@
-14,7
+14,7
@@
#include "util.h"
-static struct ipc_namespace *c
lone_ipc_ns(struct ipc_namespace *old_ns
)
+static struct ipc_namespace *c
reate_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();
}
/*