diff options
Diffstat (limited to 'fs/filesystems.c')
-rw-r--r-- | fs/filesystems.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/filesystems.c b/fs/filesystems.c index f2728a4a03a1..b03f57b1105b 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c | |||
@@ -238,21 +238,9 @@ static int filesystems_proc_show(struct seq_file *m, void *v) | |||
238 | return 0; | 238 | return 0; |
239 | } | 239 | } |
240 | 240 | ||
241 | static int filesystems_proc_open(struct inode *inode, struct file *file) | ||
242 | { | ||
243 | return single_open(file, filesystems_proc_show, NULL); | ||
244 | } | ||
245 | |||
246 | static const struct file_operations filesystems_proc_fops = { | ||
247 | .open = filesystems_proc_open, | ||
248 | .read = seq_read, | ||
249 | .llseek = seq_lseek, | ||
250 | .release = single_release, | ||
251 | }; | ||
252 | |||
253 | static int __init proc_filesystems_init(void) | 241 | static int __init proc_filesystems_init(void) |
254 | { | 242 | { |
255 | proc_create("filesystems", 0, NULL, &filesystems_proc_fops); | 243 | proc_create_single("filesystems", 0, NULL, filesystems_proc_show); |
256 | return 0; | 244 | return 0; |
257 | } | 245 | } |
258 | module_init(proc_filesystems_init); | 246 | module_init(proc_filesystems_init); |