cgroup: make css_next_child() skip missing csses
authorTejun Heo <tj@kernel.org>
Wed, 23 Apr 2014 15:13:15 +0000 (11:13 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 23 Apr 2014 15:13:15 +0000 (11:13 -0400)
commit3b281afbc3a06cd69c54e6db1a04a8e73997723f
treefe6fd8897b317f391ec7d2f55f7cb6f6370d8a7f
parent2d8f243a5e6efa57fb7c46fe83fafa45b33d0ec2
cgroup: make css_next_child() skip missing csses

css_next_child() walks the children of the specified css.  It does
this by finding the next cgroup and then returning the requested css.
On the default unified hierarchy, a cgroup may not have a css
associated with it even if the hierarchy has the subsystem enabled.
This patch updates css_next_child() so that it skips children without
the requested css associated.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c
This page took 0.025163 seconds and 5 git commands to generate.