]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] namespaces: incorporate fs namespace into nsproxy
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 2 Oct 2006 09:18:08 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:20 +0000 (07:57 -0700)
commit4cc5a89d971ed40e1f50a5d06f324d8df38df1af
tree401ff78624fdc4b445f3f95174a223acaf6a4ca0
parent3f932cd10a4bfd7c628951768c0a889cad9a1afe
[PATCH] namespaces: incorporate fs namespace into nsproxy

This moves the mount namespace into the nsproxy.  The mount namespace count
now refers to the number of nsproxies point to it, rather than the number of
tasks.  As a result, the unshare_namespace() function in kernel/fork.c no
longer checks whether it is being shared.

Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namespace.c
fs/proc/base.c
include/linux/init_task.h
include/linux/namespace.h
include/linux/nsproxy.h
include/linux/sched.h
kernel/exit.c
kernel/fork.c
kernel/nsproxy.c