• T
    cgroup: distinguish local and children populated states · 788b950c
    Tejun Heo 提交于
    cgrp->populated_cnt counts both local (the cgroup's populated
    css_sets) and subtree proper (populated children) so that it's only
    zero when the whole subtree, including self, is empty.
    
    This patch splits the counter into two so that local and children
    populated states are tracked separately.  It allows finer-grained
    tests on the state of the hierarchy which will be used to replace
    css_set walking local populated test.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    788b950c
cgroup.c 138.7 KB