[PATCH] proc: Use pid_task instead of open coding it
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 2 Oct 2006 09:18:51 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:24 +0000 (07:57 -0700)
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c

index 38a8046948f322b2f713a7fa7b1cc43aebee9233..04e29f929a118f917ef26e25934a3917f8e43edb 100644 (file)
@@ -958,7 +958,7 @@ static struct inode *proc_pid_make_inode(struct super_block * sb, struct task_st
        /*
         * grab the reference to task.
         */
-       ei->pid = get_pid(task->pids[PIDTYPE_PID].pid);
+       ei->pid = get_pid(task_pid(task));
        if (!ei->pid)
                goto out_unlock;