diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-06-01 11:55:38 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-06-01 11:55:38 +1000 |
commit | 7021751b267720b663930f8cf0ee3788ec461c2e (patch) | |
tree | 577fe567a7bee74aaa3ccde5ebaa4c5439109220 /fs/proc/meminfo.c | |
parent | fd1008e9e457ca24486c1c2ed7798140277d2ad2 (diff) | |
parent | d888ee6a7e8ca577c77541f7f7c9b772554078d4 (diff) |
Merge remote-tracking branch 'vfs/for-next'
Diffstat (limited to 'fs/proc/meminfo.c')
-rw-r--r-- | fs/proc/meminfo.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 65a72ab57471..2fb04846ed11 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c @@ -149,21 +149,9 @@ static int meminfo_proc_show(struct seq_file *m, void *v) return 0; } -static int meminfo_proc_open(struct inode *inode, struct file *file) -{ - return single_open(file, meminfo_proc_show, NULL); -} - -static const struct file_operations meminfo_proc_fops = { - .open = meminfo_proc_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; - static int __init proc_meminfo_init(void) { - proc_create("meminfo", 0, NULL, &meminfo_proc_fops); + proc_create_single("meminfo", 0, NULL, meminfo_proc_show); return 0; } fs_initcall(proc_meminfo_init); |