pidns: call pid_ns_prepare_proc() from create_pid_namespace()
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 23 Mar 2011 23:43:13 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:58 +0000 (19:46 -0700)
commit4308eebbeb2026827d4492ce8c23d99f7f144a82
tree3781e227988b4d986bf98dcc0390df17c6fe8f10
parent45a68628d37222e655219febce9e91b6484789b2
pidns: call pid_ns_prepare_proc() from create_pid_namespace()

Reorganize proc_get_sb() so it can be called before the struct pid of the
first process is allocated.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Serge E. Hallyn <serge@hallyn.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/root.c
kernel/fork.c
kernel/pid_namespace.c