diff options
author | Tejun Heo <tj@kernel.org> | 2012-11-19 11:13:36 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-11-19 11:13:36 -0500 |
commit | b48c6a80a0f7584056f768268fc12b87745a393f (patch) | |
tree | 2bf2581057ce3ec3c0fc8305e5967dbd0c1a14bb /kernel/cgroup.c | |
parent | 38b53abaa3e0c7e750ef73eee919cf42eee6b134 (diff) |
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/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 6 |
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) | |||
4332 | * pointer to this state - since the subsystem is | 4332 | * pointer to this state - since the subsystem is |
4333 | * newly registered, all tasks and hence the | 4333 | * newly registered, all tasks and hence the |
4334 | * init_css_set is in the subsystem's top cgroup. */ | 4334 | * init_css_set is in the subsystem's top cgroup. */ |
4335 | init_css_set.subsys[ss->subsys_id] = dummytop->subsys[ss->subsys_id]; | 4335 | init_css_set.subsys[ss->subsys_id] = css; |
4336 | 4336 | ||
4337 | need_forkexit_callback |= ss->fork || ss->exit; | 4337 | need_forkexit_callback |= ss->fork || ss->exit; |
4338 | 4338 | ||
@@ -4344,7 +4344,7 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss) | |||
4344 | ss->active = 1; | 4344 | ss->active = 1; |
4345 | 4345 | ||
4346 | if (ss->post_create) | 4346 | if (ss->post_create) |
4347 | ss->post_create(&ss->root->top_cgroup); | 4347 | ss->post_create(dummytop); |
4348 | 4348 | ||
4349 | /* this function shouldn't be used with modular subsystems, since they | 4349 | /* this function shouldn't be used with modular subsystems, since they |
4350 | * need to register a subsys_id, among other things */ | 4350 | * need to register a subsys_id, among other things */ |
@@ -4456,7 +4456,7 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss) | |||
4456 | ss->active = 1; | 4456 | ss->active = 1; |
4457 | 4457 | ||
4458 | if (ss->post_create) | 4458 | if (ss->post_create) |
4459 | ss->post_create(&ss->root->top_cgroup); | 4459 | ss->post_create(dummytop); |
4460 | 4460 | ||
4461 | /* success! */ | 4461 | /* success! */ |
4462 | mutex_unlock(&cgroup_mutex); | 4462 | mutex_unlock(&cgroup_mutex); |