diff options
author | Tejun Heo <tj@kernel.org> | 2013-12-06 15:11:57 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-12-06 15:11:57 -0500 |
commit | b85d20404cef6493f9d2edbafe83f9c72aece9a8 (patch) | |
tree | 865a0a474f729925586cf17dfe735e151379afce /include/linux/cgroup.h | |
parent | 1c6727af4b495a9ec74c46d1fc08e508e675899d (diff) |
cgroup: remove for_each_root_subsys()
After the previous patch which introduced for_each_css(),
for_each_root_subsys() only has two users left. This patch replaces
it with for_each_subsys() + explicit subsys_mask testing and remove
for_each_root_subsys() along with cgroupfs_root->subsys_list handling.
This patch doesn't introduce any behavior changes.
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 | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 8b9a594f0c92..cfaf416492dd 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -319,9 +319,6 @@ struct cgroupfs_root { | |||
319 | /* Unique id for this hierarchy. */ | 319 | /* Unique id for this hierarchy. */ |
320 | int hierarchy_id; | 320 | int hierarchy_id; |
321 | 321 | ||
322 | /* A list running through the attached subsystems */ | ||
323 | struct list_head subsys_list; | ||
324 | |||
325 | /* The root cgroup for this hierarchy */ | 322 | /* The root cgroup for this hierarchy */ |
326 | struct cgroup top_cgroup; | 323 | struct cgroup top_cgroup; |
327 | 324 | ||
@@ -617,12 +614,8 @@ struct cgroup_subsys { | |||
617 | #define MAX_CGROUP_TYPE_NAMELEN 32 | 614 | #define MAX_CGROUP_TYPE_NAMELEN 32 |
618 | const char *name; | 615 | const char *name; |
619 | 616 | ||
620 | /* | 617 | /* link to parent, protected by cgroup_lock() */ |
621 | * Link to parent, and list entry in parent's children. | ||
622 | * Protected by cgroup_lock() | ||
623 | */ | ||
624 | struct cgroupfs_root *root; | 618 | struct cgroupfs_root *root; |
625 | struct list_head sibling; | ||
626 | 619 | ||
627 | /* list of cftype_sets */ | 620 | /* list of cftype_sets */ |
628 | struct list_head cftsets; | 621 | struct list_head cftsets; |