cgroups: clean up cgroup_pidlist_find() a bit
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 10 Mar 2010 23:22:12 +0000 (15:22 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:36 +0000 (15:52 -0800)
commitb70cc5fdb445a6929a01e9c406593265b136c99d
tree7ca8ec384bd93de2ba516f045d9c8c5c77f5b84a
parent67523c48aa74d5637848edeccf285af1c60bf14a
cgroups: clean up cgroup_pidlist_find() a bit

Don't call get_pid_ns() before we locate/alloc the ns.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Acked-by: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c