cgroup: use for_each_subsys() instead of for_each_root_subsys() in cgroup_populate...
authorTejun Heo <tj@kernel.org>
Fri, 12 Jul 2013 19:34:02 +0000 (12:34 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 12 Jul 2013 19:34:02 +0000 (12:34 -0700)
commitb420ba7db15659253d4f286a0ba479d336371999
treedd19242c8bc703f13b7fe154e411bc9426e42476
parentbee550994f6b0c1179bd3ccea58dc5c2c4ccf842
cgroup: use for_each_subsys() instead of for_each_root_subsys() in cgroup_populate/clear_dir()

rebind_subsystems() will be updated to handle file creations and
removals with proper error handling and to do that will need to
perform file operations before actually adding the subsystem to the
hierarchy.

To enable such usage, update cgroup_populate/clear_dir() to use
for_each_subsys() instead of for_each_root_subsys() so that they
operate on all subsystems specified by @subsys_mask whether that
subsystem is currently bound to the hierarchy or not.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c