From: Eric W. Biederman Date: Mon, 2 Oct 2006 09:18:51 +0000 (-0700) Subject: [PATCH] proc: Use pid_task instead of open coding it X-Git-Tag: v2.6.19-rc1~387 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbaac005cab2f3b4d6999cdb32fb93d442c5cdb;p=linux-2.6 [PATCH] proc: Use pid_task instead of open coding it Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 38a8046948..04e29f929a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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;