diff options
author | Tejun Heo <tj@kernel.org> | 2013-08-09 04:11:24 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-08-09 04:11:24 +0400 |
commit | 3b287a505ef4024634beb12a93773254909d5dae (patch) | |
tree | 8cd2892ea52ec1f17a75c333daebd8d967d1f7c4 /block/blk-cgroup.h | |
parent | 182446d087906de40e514573a92a97b203695f71 (diff) | |
download | linux-3b287a505ef4024634beb12a93773254909d5dae.tar.xz |
cgroup: convert cgroup_next_sibling() to cgroup_next_child()
cgroup is transitioning to using css (cgroup_subsys_state) as the main
subsys interface handle instead of cgroup and the iterators will be
updated to use css too. The iterators need to walk the cgroup
hierarchy and return the css's matching the origin css, which is a bit
cumbersome to open code.
This patch converts cgroup_next_sibling() to cgroup_next_child() so
that it can handle all steps of direct child iteration. This will be
used to update iterators to take @css instead of @cgrp. In addition
to the new iteration init handling, cgroup_next_child() is
restructured so that the different branches share the end of iteration
condition check.
This patch doesn't change any behavior.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions