cgroup: keep track of number of descent cgroups
authorRoman Gushchin <guro@fb.com>
Wed, 2 Aug 2017 16:55:29 +0000 (17:55 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 2 Aug 2017 19:05:19 +0000 (12:05 -0700)
commit0679dee03c6d706d57145ea92c23d08fa10a1999
treec820222fb59847005601bfbb087f6dfb693af5c4
parentc705a00d77457b44ba3790fdf0627ecb8593a254
cgroup: keep track of number of descent cgroups

Keep track of the number of online and dying descent cgroups.

This data will be used later to add an ability to control cgroup
hierarchy (limit the depth and the number of descent cgroups)
and display hierarchy stats.

Signed-off-by: Roman Gushchin <guro@fb.com>
Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: kernel-team@fb.com
Cc: cgroups@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
include/linux/cgroup-defs.h
kernel/cgroup/cgroup.c