cgroup: remove cgroup->count and use
authorTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 04:04:55 +0000 (21:04 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 17:55:18 +0000 (10:55 -0700)
commit6f3d828f0fb7fdaffc6f32cb8a1cb7fcf8824598
tree662fa290a077ebe5113c877040cb4b891b72d311
parentddd69148bdc45e5e3e55bfde3571daecd5a96d75
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>
include/linux/cgroup.h
kernel/cgroup.c