commit | 6f3d828f0fb7fdaffc6f32cb8a1cb7fcf8824598 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Wed Jun 12 21:04:55 2013 -0700 |
committer | Tejun Heo <tj@kernel.org> | Thu Jun 13 10:55:18 2013 -0700 |
tree | 662fa290a077ebe5113c877040cb4b891b72d311 | |
parent | ddd69148bdc45e5e3e55bfde3571daecd5a96d75 [diff] |
cgroup: remove cgroup->count and use cgroup->count tracks the number of css_sets associated with the cgroup and used only to verify that no css_set is associated when the cgroup is being destroyed. It's superflous as the destruction path can simply check whether cgroup->cset_links is empty instead. Drop cgroup->count and check ->cset_links directly from cgroup_destroy_locked(). Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>