cgroup: build list of all cgroups under a given cgroupfs_root
authorTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:54 +0000 (12:09 -0700)
committerTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:54 +0000 (12:09 -0700)
commitb0ca5a84fc3ad8f75bb2b7ac3dc6a77151cd3906
tree87dcdec8c3104ed00b34518b4dc1837e8c03d837
parentff4c8d503e2583b485da46d0ec3dcc29639ab889
cgroup: build list of all cgroups under a given cgroupfs_root

Build a list of all cgroups anchored at cgroupfs_root->allcg_list and
going through cgroup->allcg_node.  The list is protected by
cgroup_mutex and will be used to improve cgroup file handling.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
include/linux/cgroup.h
kernel/cgroup.c