summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cgroup-v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup/cgroup-v1.c')
-rw-r--r--kernel/cgroup/cgroup-v1.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index a2c05d2476ac..e06c97f3ed1a 100644
--- a/kernel/cgroup/cgroup-v1.c
+++ b/kernel/cgroup/cgroup-v1.c
@@ -682,7 +682,7 @@ struct cftype cgroup1_base_files[] = {
682}; 682};
683 683
684/* Display information about each subsystem and each hierarchy */ 684/* Display information about each subsystem and each hierarchy */
685static int proc_cgroupstats_show(struct seq_file *m, void *v) 685int proc_cgroupstats_show(struct seq_file *m, void *v)
686{ 686{
687 struct cgroup_subsys *ss; 687 struct cgroup_subsys *ss;
688 int i; 688 int i;
@@ -705,18 +705,6 @@ static int proc_cgroupstats_show(struct seq_file *m, void *v)
705 return 0; 705 return 0;
706} 706}
707 707
708static int cgroupstats_open(struct inode *inode, struct file *file)
709{
710 return single_open(file, proc_cgroupstats_show, NULL);
711}
712
713const struct file_operations proc_cgroupstats_operations = {
714 .open = cgroupstats_open,
715 .read = seq_read,
716 .llseek = seq_lseek,
717 .release = single_release,
718};
719
720/** 708/**
721 * cgroupstats_build - build and fill cgroupstats 709 * cgroupstats_build - build and fill cgroupstats
722 * @stats: cgroupstats to fill information into 710 * @stats: cgroupstats to fill information into