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-Url: https://git.stricted.de/?a=commitdiff_plain;h=7fbaac005cab2f3b4d6999cdb32fb93d442c5cdb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 38a8046948f3..04e29f929a11 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;