diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-16 13:22:52 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-16 13:22:52 -0400 |
commit | f3d4650015301d1c880df4523f7e7ef320a38aab (patch) | |
tree | ed6040e2019347e8bf9525c15db859737ecae709 /include/linux/cgroup.h | |
parent | 184faf32328c65c9d86b19577b8d8b90bdd2cd2e (diff) | |
download | op-kernel-dev-f3d4650015301d1c880df4523f7e7ef320a38aab.zip op-kernel-dev-f3d4650015301d1c880df4523f7e7ef320a38aab.tar.gz |
cgroup: convert cgroup_has_live_children() into css_has_online_children()
Now that cgroup liveliness and css onliness are the same state,
convert cgroup_has_live_children() into css_has_online_children() so
that it can be used for actual csses too. The function now uses
css_for_each_child() for iteration and is published.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 51a339c..b769999 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -873,6 +873,8 @@ css_next_descendant_post(struct cgroup_subsys_state *pos, for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \ (pos) = css_next_descendant_post((pos), (css))) +bool css_has_online_children(struct cgroup_subsys_state *css); + /* A css_task_iter should be treated as an opaque object */ struct css_task_iter { struct cgroup_subsys *ss; |