From: Tejun Heo Date: Sat, 29 Jun 2013 00:07:30 +0000 (-0700) Subject: cgroup: move number_of_cgroups test out of rebind_subsystems() into cgroup_remount() X-Git-Tag: v3.12-rc1~173^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f172e67cf9d842bc646d0f66792e38435a334b1e;p=pandora-kernel.git cgroup: move number_of_cgroups test out of rebind_subsystems() into cgroup_remount() rebind_subsystems() currently fails if the hierarchy has any !root cgroups; however, on the planned unified hierarchy, rebind_subsystems() will be used while populated. Move the test to cgroup_remount(), which is the only place the test is necessary anyway. As it's impossible for the other two callers of rebind_subsystems() to have populated hierarchy, this doesn't make any behavior changes. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed