summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Emelyanov2007-10-19 08:40:44 +0200
committerLinus Torvalds2007-10-19 20:53:43 +0200
commit69cccb887a35f3761b7ea62cdd2bee602868c735 (patch)
tree37197177f0d2a8c7b147a33acdca59e5bf8f96b6
parentUse task_pid_nr() in ip_vs_sync.c (diff)
downloadkernel-qcow2-linux-69cccb887a35f3761b7ea62cdd2bee602868c735.tar.gz
kernel-qcow2-linux-69cccb887a35f3761b7ea62cdd2bee602868c735.tar.xz
kernel-qcow2-linux-69cccb887a35f3761b7ea62cdd2bee602868c735.zip
Use task_pid_nr() instead of pid_nr(task_pid())
There are two places that do so - the cgroups subsystem and the autofs code. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Cc: Ian Kent <raven@themaw.net> Cc: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/autofs/root.c2
-rw-r--r--kernel/cgroup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/autofs/root.c b/fs/autofs/root.c
index 592f64037ae2..5efff3c0d886 100644
--- a/fs/autofs/root.c
+++ b/fs/autofs/root.c
@@ -214,7 +214,7 @@ static struct dentry *autofs_root_lookup(struct inode *dir, struct dentry *dentr
oz_mode = autofs_oz_mode(sbi);
DPRINTK(("autofs_lookup: pid = %u, pgrp = %u, catatonic = %d, "
- "oz_mode = %d\n", pid_nr(task_pid(current)),
+ "oz_mode = %d\n", task_pid_nr(current),
task_pgrp_nr(current), sbi->catatonic,
oz_mode));
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index ca38db223f84..c2f12a49dff2 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1763,7 +1763,7 @@ static int pid_array_load(pid_t *pidarray, int npids, struct cgroup *cont)
while ((tsk = cgroup_iter_next(cont, &it))) {
if (unlikely(n == npids))
break;
- pidarray[n++] = pid_nr(task_pid(tsk));
+ pidarray[n++] = task_pid_nr(tsk);
}
cgroup_iter_end(cont, &it);
return n;