diff options
Diffstat (limited to 'kernel/cgroup.c')
| -rw-r--r-- | kernel/cgroup.c | 18 | 
1 files changed, 1 insertions, 17 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index eeb7e49946b..2a9926275f8 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4380,7 +4380,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); @@ -4485,7 +4484,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; @@ -4526,7 +4524,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); @@ -4681,7 +4678,7 @@ out:   */  /* TODO: Use a proper seq_file iterator */ -static int proc_cgroup_show(struct seq_file *m, void *v) +int proc_cgroup_show(struct seq_file *m, void *v)  {  	struct pid *pid;  	struct task_struct *tsk; @@ -4733,19 +4730,6 @@ out:  	return retval;  } -static int cgroup_open(struct inode *inode, struct file *file) -{ -	struct pid *pid = PROC_I(inode)->pid; -	return single_open(file, proc_cgroup_show, pid); -} - -const struct file_operations proc_cgroup_operations = { -	.open		= cgroup_open, -	.read		= seq_read, -	.llseek		= seq_lseek, -	.release	= single_release, -}; -  /* Display information about each subsystem and each hierarchy */  static int proc_cgroupstats_show(struct seq_file *m, void *v)  {  |