diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2006-10-02 11:18:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 16:57:24 +0200 |
commit | 7fbaac005cab2f3b4d6999cdb32fb93d442c5cdb (patch) | |
tree | 5e97a4a30d7659ff688500e997387c38d042faa4 /fs/proc | |
parent | [PATCH] proc: Merge proc_tid_attr and proc_tgid_attr (diff) | |
download | linux-7fbaac005cab2f3b4d6999cdb32fb93d442c5cdb.tar.xz linux-7fbaac005cab2f3b4d6999cdb32fb93d442c5cdb.zip |
[PATCH] proc: Use pid_task instead of open coding it
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>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |