diff options
author | Li Zefan <lizefan@huawei.com> | 2013-06-18 06:48:37 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-18 14:14:22 -0400 |
commit | e8c82d20a9f729cf4b9f73043f7fd4e0872bebfd (patch) | |
tree | fc45f039baee86a1b867d6c55cb05ea7e8c47288 /include/linux/cgroup.h | |
parent | 794611a1dfcb055d7d41ce133378dd8197d73e38 (diff) |
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/linux/cgroup.h')
-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 f97522790682..b28365890646 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -206,9 +206,6 @@ struct cgroup { | |||
206 | */ | 206 | */ |
207 | struct list_head cset_links; | 207 | struct list_head cset_links; |
208 | 208 | ||
209 | struct list_head allcg_node; /* cgroupfs_root->allcg_list */ | ||
210 | struct list_head cft_q_node; /* used during cftype add/rm */ | ||
211 | |||
212 | /* | 209 | /* |
213 | * Linked list running through all cgroups that can | 210 | * Linked list running through all cgroups that can |
214 | * potentially be reaped by the release agent. Protected by | 211 | * potentially be reaped by the release agent. Protected by |
@@ -313,9 +310,6 @@ struct cgroupfs_root { | |||
313 | /* A list running through the active hierarchies */ | 310 | /* A list running through the active hierarchies */ |
314 | struct list_head root_list; | 311 | struct list_head root_list; |
315 | 312 | ||
316 | /* All cgroups on this root, cgroup_mutex protected */ | ||
317 | struct list_head allcg_list; | ||
318 | |||
319 | /* Hierarchy-specific flags */ | 313 | /* Hierarchy-specific flags */ |
320 | unsigned long flags; | 314 | unsigned long flags; |
321 | 315 | ||