diff options
author | Li Zefan <lizefan@huawei.com> | 2013-06-18 10:48:37 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-18 18:14:22 (GMT) |
commit | e8c82d20a9f729cf4b9f73043f7fd4e0872bebfd (patch) | |
tree | fc45f039baee86a1b867d6c55cb05ea7e8c47288 /include | |
parent | 794611a1dfcb055d7d41ce133378dd8197d73e38 (diff) | |
download | linux-fsl-qoriq-e8c82d20a9f729cf4b9f73043f7fd4e0872bebfd.tar.xz |
cgroup: convert cgroup_cft_commit() to use cgroup_for_each_descendant_pre()
We used root->allcg_list to iterate cgroup hierarchy because at that time
cgroup_for_each_descendant_pre() hasn't been invented.
tj: In cgroup_cfts_commit(), s/@serial_nr/@update_upto/, move the
assignment right above releasing cgroup_mutex and explain what's
going on there.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index f975227..b283658 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -206,9 +206,6 @@ struct cgroup { */ struct list_head cset_links; - struct list_head allcg_node; /* cgroupfs_root->allcg_list */ - struct list_head cft_q_node; /* used during cftype add/rm */ - /* * Linked list running through all cgroups that can * potentially be reaped by the release agent. Protected by @@ -313,9 +310,6 @@ struct cgroupfs_root { /* A list running through the active hierarchies */ struct list_head root_list; - /* All cgroups on this root, cgroup_mutex protected */ - struct list_head allcg_list; - /* Hierarchy-specific flags */ unsigned long flags; |