From 69cccb887a35f3761b7ea62cdd2bee602868c735 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 18 Oct 2007 23:40:44 -0700 Subject: 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 Cc: Ian Kent Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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; -- cgit v1.2.3