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 | |
parent | 184faf32328c65c9d86b19577b8d8b90bdd2cd2e (diff) |
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')
-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 51a339c99eb6..b76999954beb 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -873,6 +873,8 @@ css_next_descendant_post(struct cgroup_subsys_state *pos, | |||
873 | for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \ | 873 | for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \ |
874 | (pos) = css_next_descendant_post((pos), (css))) | 874 | (pos) = css_next_descendant_post((pos), (css))) |
875 | 875 | ||
876 | bool css_has_online_children(struct cgroup_subsys_state *css); | ||
877 | |||
876 | /* A css_task_iter should be treated as an opaque object */ | 878 | /* A css_task_iter should be treated as an opaque object */ |
877 | struct css_task_iter { | 879 | struct css_task_iter { |
878 | struct cgroup_subsys *ss; | 880 | struct cgroup_subsys *ss; |