summaryrefslogtreecommitdiffstats
path: root/fs/fscache/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/stats.c')
-rw-r--r--fs/fscache/stats.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c
index fcc8c2f2690e..00564a1dfd76 100644
--- a/fs/fscache/stats.c
+++ b/fs/fscache/stats.c
@@ -138,7 +138,7 @@ atomic_t fscache_n_cache_culled_objects;
138/* 138/*
139 * display the general statistics 139 * display the general statistics
140 */ 140 */
141static int fscache_stats_show(struct seq_file *m, void *v) 141int fscache_stats_show(struct seq_file *m, void *v)
142{ 142{
143 seq_puts(m, "FS-Cache statistics\n"); 143 seq_puts(m, "FS-Cache statistics\n");
144 144
@@ -284,18 +284,3 @@ static int fscache_stats_show(struct seq_file *m, void *v)
284 atomic_read(&fscache_n_cache_culled_objects)); 284 atomic_read(&fscache_n_cache_culled_objects));
285 return 0; 285 return 0;
286} 286}
287
288/*
289 * open "/proc/fs/fscache/stats" allowing provision of a statistical summary
290 */
291static int fscache_stats_open(struct inode *inode, struct file *file)
292{
293 return single_open(file, fscache_stats_show, NULL);
294}
295
296const struct file_operations fscache_stats_fops = {
297 .open = fscache_stats_open,
298 .read = seq_read,
299 .llseek = seq_lseek,
300 .release = single_release,
301};