[PATCH 02/14] cgroup: make cgroup->nr_populated count the number of populated css_sets

2015-10-09 Thread Tejun Heo
Currently, cgroup->nr_populated counts whether the cgroup has any css_sets linked to it and the number of children which has non-zero ->nr_populated. This works because a css_set's refcnt converges with the number of tasks linked to it and thus there's no css_set linked to a cgroup if it doesn't

[PATCH 02/14] cgroup: make cgroup->nr_populated count the number of populated css_sets

2015-10-09 Thread Tejun Heo
Currently, cgroup->nr_populated counts whether the cgroup has any css_sets linked to it and the number of children which has non-zero ->nr_populated. This works because a css_set's refcnt converges with the number of tasks linked to it and thus there's no css_set linked to a cgroup if it doesn't