diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-15 09:57:23 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-16 01:23:35 -0400 |
commit | 3f3942aca6da351a12543aa776467791b63b3a78 (patch) | |
tree | 31030e086ea36920e07078ea2289b9b72c0b2939 /kernel/cgroup/cgroup.c | |
parent | 44414d82cfe0f68cb59d0a42f599ccd893ae0032 (diff) |
proc: introduce proc_create_single{,_data}
Variants of proc_create{,_data} that directly take a seq_file show
callback and drastically reduces the boilerplate code in the callers.
All trivial callers converted over.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r-- | kernel/cgroup/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index a662bfcbea0e..12883656e63e 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c | |||
@@ -5335,7 +5335,7 @@ int __init cgroup_init(void) | |||
5335 | WARN_ON(sysfs_create_mount_point(fs_kobj, "cgroup")); | 5335 | WARN_ON(sysfs_create_mount_point(fs_kobj, "cgroup")); |
5336 | WARN_ON(register_filesystem(&cgroup_fs_type)); | 5336 | WARN_ON(register_filesystem(&cgroup_fs_type)); |
5337 | WARN_ON(register_filesystem(&cgroup2_fs_type)); | 5337 | WARN_ON(register_filesystem(&cgroup2_fs_type)); |
5338 | WARN_ON(!proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations)); | 5338 | WARN_ON(!proc_create_single("cgroups", 0, NULL, proc_cgroupstats_show)); |
5339 | 5339 | ||
5340 | return 0; | 5340 | return 0; |
5341 | } | 5341 | } |