teach set_special_pids() to use struct pid

Change set_special_pids() to work with struct pid, not pid_t from global name
space. This again speedups and imho cleanups the code, also a preparation for
the next patch.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Oleg Nesterov
2008-02-08 04:19:09 -08:00
committed by Linus Torvalds
parent e4cc0a9c87
commit 8520d7c7f8
4 changed files with 18 additions and 18 deletions

View File

@@ -833,7 +833,7 @@ static int __init kernel_init(void * unused)
*/
init_pid_ns.child_reaper = current;
__set_special_pids(1, 1);
__set_special_pids(task_pid(current));
cad_pid = task_pid(current);
smp_prepare_cpus(setup_max_cpus);