aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-05-14 09:15:00 -0400
committerTejun Heo <tj@kernel.org>2014-05-14 09:15:00 -0400
commit9d800df12d31734a6853915e9d2deb5d6747985f (patch)
tree936ff26905eb211065e2a19dce736c8e4f40202a /include/linux/cgroup.h
parenta015edd26e28afe225cdd04f25794bd2b3bbe2da (diff)
cgroup: rename cgroup->dummy_css to ->self and move it to the top
cgroup->dummy_css is used as the placeholder css when performing css oriended operations on the cgroup. We're gonna shift more cgroup management to this css. Let's rename it to ->self and move it to the top. This is pure rename and field relocation. 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index aa7353deaaf3..164851e388e7 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -143,6 +143,9 @@ enum {
143}; 143};
144 144
145struct cgroup { 145struct cgroup {
146 /* self css with NULL ->ss, points back to this cgroup */
147 struct cgroup_subsys_state self;
148
146 unsigned long flags; /* "unsigned long" so bitops work */ 149 unsigned long flags; /* "unsigned long" so bitops work */
147 150
148 /* 151 /*
@@ -224,9 +227,6 @@ struct cgroup {
224 struct list_head pidlists; 227 struct list_head pidlists;
225 struct mutex pidlist_mutex; 228 struct mutex pidlist_mutex;
226 229
227 /* dummy css with NULL ->ss, points back to this cgroup */
228 struct cgroup_subsys_state dummy_css;
229
230 /* For css percpu_ref killing and RCU-protected deletion */ 230 /* For css percpu_ref killing and RCU-protected deletion */
231 struct rcu_head rcu_head; 231 struct rcu_head rcu_head;
232 struct work_struct destroy_work; 232 struct work_struct destroy_work;