aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-04-15 02:25:05 -0400
committerTejun Heo <tj@kernel.org>2013-04-15 02:26:10 -0400
commit05fb22ec5456a472a5eadcaacb3e51eca1f8c79c (patch)
tree37be0dd3b40b8bf6fc3f4933703543423c39d311 /kernel/cgroup.c
parent873fe09ea5df6ccf6bb34811d8c9992aacb67598 (diff)
cgroup: remove cgrp->top_cgroup
It's not used, and it can be retrieved via cgrp->root->top_cgroup. Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 67804590d4b0..c16719e056ab 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1418,7 +1418,6 @@ static void init_cgroup_root(struct cgroupfs_root *root)
1418 root->number_of_cgroups = 1; 1418 root->number_of_cgroups = 1;
1419 cgrp->root = root; 1419 cgrp->root = root;
1420 cgrp->name = &root_cgroup_name; 1420 cgrp->name = &root_cgroup_name;
1421 cgrp->top_cgroup = cgrp;
1422 init_cgroup_housekeeping(cgrp); 1421 init_cgroup_housekeeping(cgrp);
1423 list_add_tail(&cgrp->allcg_node, &root->allcg_list); 1422 list_add_tail(&cgrp->allcg_node, &root->allcg_list);
1424} 1423}
@@ -4145,7 +4144,6 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
4145 4144
4146 cgrp->parent = parent; 4145 cgrp->parent = parent;
4147 cgrp->root = parent->root; 4146 cgrp->root = parent->root;
4148 cgrp->top_cgroup = parent->top_cgroup;
4149 4147
4150 if (notify_on_release(parent)) 4148 if (notify_on_release(parent))
4151 set_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags); 4149 set_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags);