summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-19 08:13:36 -0800
committerTejun Heo <tj@kernel.org>2012-11-19 08:13:36 -0800
commitb48c6a80a0f7584056f768268fc12b87745a393f (patch)
tree2bf2581057ce3ec3c0fc8305e5967dbd0c1a14bb /kernel
parent38b53abaa3e0c7e750ef73eee919cf42eee6b134 (diff)
downloadlinux-b48c6a80a0f7584056f768268fc12b87745a393f.tar.gz
linux-b48c6a80a0f7584056f768268fc12b87745a393f.tar.bz2
linux-b48c6a80a0f7584056f768268fc12b87745a393f.zip
cgroup: trivial cleanup for cgroup_init/load_subsys()
Consistently use @css and @dummytop in these two functions instead of referring to them indirectly. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 82ad8785fafe..6cc693b91c4a 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4332,7 +4332,7 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
* pointer to this state - since the subsystem is
* newly registered, all tasks and hence the
* init_css_set is in the subsystem's top cgroup. */
- init_css_set.subsys[ss->subsys_id] = dummytop->subsys[ss->subsys_id];
+ init_css_set.subsys[ss->subsys_id] = css;
need_forkexit_callback |= ss->fork || ss->exit;
@@ -4344,7 +4344,7 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
ss->active = 1;
if (ss->post_create)
- ss->post_create(&ss->root->top_cgroup);
+ ss->post_create(dummytop);
/* this function shouldn't be used with modular subsystems, since they
* need to register a subsys_id, among other things */
@@ -4456,7 +4456,7 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss)
ss->active = 1;
if (ss->post_create)
- ss->post_create(&ss->root->top_cgroup);
+ ss->post_create(dummytop);
/* success! */
mutex_unlock(&cgroup_mutex);