cgroup: Kill subsys.active flag
authorLi Zefan <lizefan@huawei.com>
Fri, 29 Mar 2013 06:44:42 +0000 (14:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2013 11:54:22 +0000 (13:54 +0200)
The only user was cpuacct.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/5155385A.4040207@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/cgroup.h
kernel/cgroup.c

index 900af5964f5543f6dd1b5308419e93c70cb0ca07..95c02c0e35b324e0df0a2d775ffc2cec5745d395 100644 (file)
@@ -458,7 +458,6 @@ struct cgroup_subsys {
        void (*bind)(struct cgroup *root);
 
        int subsys_id;
-       int active;
        int disabled;
        int early_init;
        /*
index a32f9432666cc9f0f736ca24639a58fc45557ce8..5c462813722d10d8666a39d8a67275a86ebe9afe 100644 (file)
@@ -4468,7 +4468,6 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
         * need to invoke fork callbacks here. */
        BUG_ON(!list_empty(&init_task.tasks));
 
-       ss->active = 1;
        BUG_ON(online_css(ss, dummytop));
 
        mutex_unlock(&cgroup_mutex);
@@ -4573,7 +4572,6 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss)
        }
        write_unlock(&css_set_lock);
 
-       ss->active = 1;
        ret = online_css(ss, dummytop);
        if (ret)
                goto err_unload;
@@ -4614,7 +4612,6 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss)
        mutex_lock(&cgroup_mutex);
 
        offline_css(ss, dummytop);
-       ss->active = 0;
 
        if (ss->use_id)
                idr_destroy(&ss->idr);