diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index d3abce2d6455..2a9926275f80 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -4678,7 +4678,7 @@ out: | |||
4678 | */ | 4678 | */ |
4679 | 4679 | ||
4680 | /* TODO: Use a proper seq_file iterator */ | 4680 | /* TODO: Use a proper seq_file iterator */ |
4681 | static int proc_cgroup_show(struct seq_file *m, void *v) | 4681 | int proc_cgroup_show(struct seq_file *m, void *v) |
4682 | { | 4682 | { |
4683 | struct pid *pid; | 4683 | struct pid *pid; |
4684 | struct task_struct *tsk; | 4684 | struct task_struct *tsk; |
@@ -4730,19 +4730,6 @@ out: | |||
4730 | return retval; | 4730 | return retval; |
4731 | } | 4731 | } |
4732 | 4732 | ||
4733 | static int cgroup_open(struct inode *inode, struct file *file) | ||
4734 | { | ||
4735 | struct pid *pid = PROC_I(inode)->pid; | ||
4736 | return single_open(file, proc_cgroup_show, pid); | ||
4737 | } | ||
4738 | |||
4739 | const struct file_operations proc_cgroup_operations = { | ||
4740 | .open = cgroup_open, | ||
4741 | .read = seq_read, | ||
4742 | .llseek = seq_lseek, | ||
4743 | .release = single_release, | ||
4744 | }; | ||
4745 | |||
4746 | /* Display information about each subsystem and each hierarchy */ | 4733 | /* Display information about each subsystem and each hierarchy */ |
4747 | static int proc_cgroupstats_show(struct seq_file *m, void *v) | 4734 | static int proc_cgroupstats_show(struct seq_file *m, void *v) |
4748 | { | 4735 | { |