]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Use task_pid_nr() instead of pid_nr(task_pid())
authorPavel Emelyanov <xemul@openvz.org>
Fri, 19 Oct 2007 06:40:44 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:43 +0000 (11:53 -0700)
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>
fs/autofs/root.c
kernel/cgroup.c

index 592f64037ae2bf58ae16ebfdd33f2bed16081af2..5efff3c0d886985351bbe1588da8245992974525 100644 (file)
@@ -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));
 
index ca38db223f8407857ab5dc99a355d8c5da5c4562..c2f12a49dff24b7cd5af139fa153594a1f8a408e 100644 (file)
@@ -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;