diff options
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index b5f940ce0143..fac66abd5a68 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -100,18 +100,7 @@ static int bdi_debug_stats_show(struct seq_file *m, void *v) | |||
100 | 100 | ||
101 | return 0; | 101 | return 0; |
102 | } | 102 | } |
103 | 103 | DEFINE_SHOW_ATTRIBUTE(bdi_debug_stats); | |
104 | static int bdi_debug_stats_open(struct inode *inode, struct file *file) | ||
105 | { | ||
106 | return single_open(file, bdi_debug_stats_show, inode->i_private); | ||
107 | } | ||
108 | |||
109 | static const struct file_operations bdi_debug_stats_fops = { | ||
110 | .open = bdi_debug_stats_open, | ||
111 | .read = seq_read, | ||
112 | .llseek = seq_lseek, | ||
113 | .release = single_release, | ||
114 | }; | ||
115 | 104 | ||
116 | static int bdi_debug_register(struct backing_dev_info *bdi, const char *name) | 105 | static int bdi_debug_register(struct backing_dev_info *bdi, const char *name) |
117 | { | 106 | { |