[PATCH] simply fix first_tgid
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 26 Jun 2006 07:25:52 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:25 +0000 (09:58 -0700)
commit9cc8cbc7f8b7bc3db48bf6d59a731af728e786ce
treefb94d7ee120c14d7a1b56005e8cd67bcba4083e6
parentde7587343bfebc186995ad294e3de0da382eb9bc
[PATCH] simply fix first_tgid

Like the bug Oleg spotted in first_tid there was also a small off by one
error in first_tgid, when a seek was done on the /proc directory.  This
fixes that and changes the code structure to make it a little more obvious
what is going on.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c