Skip to content
Commit 788b950c authored by Tejun Heo's avatar Tejun Heo
Browse files

cgroup: distinguish local and children populated states



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: default avatarTejun Heo <tj@kernel.org>
parent 88e033e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment