diff options
author | Tejun Heo <tj@kernel.org> | 2012-04-01 15:09:54 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-04-01 15:09:54 -0400 |
commit | b0ca5a84fc3ad8f75bb2b7ac3dc6a77151cd3906 (patch) | |
tree | 87dcdec8c3104ed00b34518b4dc1837e8c03d837 /include | |
parent | ff4c8d503e2583b485da46d0ec3dcc29639ab889 (diff) |
cgroup: build list of all cgroups under a given cgroupfs_root
Build a list of all cgroups anchored at cgroupfs_root->allcg_list and
going through cgroup->allcg_node. The list is protected by
cgroup_mutex and will be used to improve cgroup file handling.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.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 5a85b3415c1b..ad2a14680b7f 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -191,6 +191,8 @@ struct cgroup { | |||
191 | */ | 191 | */ |
192 | struct list_head css_sets; | 192 | struct list_head css_sets; |
193 | 193 | ||
194 | struct list_head allcg_node; /* cgroupfs_root->allcg_list */ | ||
195 | |||
194 | /* | 196 | /* |
195 | * Linked list running through all cgroups that can | 197 | * Linked list running through all cgroups that can |
196 | * potentially be reaped by the release agent. Protected by | 198 | * potentially be reaped by the release agent. Protected by |