summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-03-19 10:23:53 -0400
committerTejun Heo <tj@kernel.org>2014-03-19 10:23:53 -0400
commit985ed670144c25058f235276f69d687de1b7c7ba (patch)
treef34e4c7c1dc4a339672749524d07eef21eefaf28 /include
parent172a2c0685ff3bc0b7a611b308aac0694de34594 (diff)
downloadlinux-985ed670144c25058f235276f69d687de1b7c7ba.tar.gz
linux-985ed670144c25058f235276f69d687de1b7c7ba.tar.bz2
linux-985ed670144c25058f235276f69d687de1b7c7ba.zip
cgroup: use cgroup_setup_root() to initialize cgroup_dummy_root
cgroup_dummy_root is used to host controllers which aren't attached to any other hierarchy. The root is minimally set up during kernfs bootstrap and didn't go through full hierarchy initialization. We're planning to use cgroup_dummy_root for the default unified hierarchy and thus want it to be fully functional. Replace the special initialization, which was collected into cgroup_init() by the previous patch, with an invocation of cgroup_setup_root(). This simplifies the init path and makes cgroup_dummy_root a full hierarchy with its own kernfs_root and all. As this puts the dummy hierarchy on the cgroup_roots list, rename for_each_active_root() to for_each_root() and update its users to skip the dummy root for now. This patch doesn't cause any userland visible behavior changes at this point. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions