[PATCH] pid: simplify pid iterators
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 2 Oct 2006 09:17:22 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:15 +0000 (07:57 -0700)
commitd387cae075b0aec479adbdfb71df39f7de8e9adb
treefe5c9a3b105f3edf4049c16dda4085c5f356fafe
parentc88be3eb2e01bbb21c9ccdc3805f0d3546c1898c
[PATCH] pid: simplify pid iterators

I think it is hardly possible to read the current do_each_task_pid().  The
new version is much simpler and makes the code smaller.

Only the do_each_task_pid change is tested, the do_each_pid_task isn't.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/pid.h