summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-02-08 15:19:08 +0300
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 20:22:27 +0300
commit4e021306cff4277764a42065214fc73f2d26be4b (patch)
tree49e2c5b785b887ae47c599b0afd81ba304f9062a /init
parentc543f1ee08ea6c2176dbdc47df0d0f6357c88713 (diff)
downloadlinux-4e021306cff4277764a42065214fc73f2d26be4b.tar.xz
sys_setpgid(): simplify pid/ns interaction
sys_setpgid() does unneeded conversions from pid_t to "struct pid" and vice versa. Use "struct pid" more consistently. Saves one find_vpid() and eliminates the explicit usage of ->nsproxy->pid_ns. Imho, cleanups the code. Also use the same_thread_group() helper. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions