summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_debug.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-11 16:51:18 +0200
committerChristoph Hellwig <hch@lst.de>2018-05-16 07:24:30 +0200
commit07a3b8ed48557fb9796943dac6333f527a6f5048 (patch)
treee631e525e51022d75b1c6a594b6f515fa6a31bb5 /fs/jfs/jfs_debug.h
parent247dbed8c952559222742de21d026d5a2e83e239 (diff)
downloadlinux-07a3b8ed48557fb9796943dac6333f527a6f5048.tar.bz2
jfs: simplify procfs code
Use remove_proc_subtree to remove the whole subtree on cleanup, and unwind the registration loop into individual calls. Switch to use proc_create_seq where applicable. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/jfs/jfs_debug.h')
-rw-r--r--fs/jfs/jfs_debug.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/jfs/jfs_debug.h b/fs/jfs/jfs_debug.h
index eafd1300a00b..0d9e35da8462 100644
--- a/fs/jfs/jfs_debug.h
+++ b/fs/jfs/jfs_debug.h
@@ -62,7 +62,7 @@ extern void jfs_proc_clean(void);
extern int jfsloglevel;
-extern const struct file_operations jfs_txanchor_proc_fops;
+int jfs_txanchor_proc_show(struct seq_file *m, void *v);
/* information message: e.g., configuration, major event */
#define jfs_info(fmt, arg...) do { \
@@ -105,10 +105,10 @@ extern const struct file_operations jfs_txanchor_proc_fops;
* ----------
*/
#ifdef CONFIG_JFS_STATISTICS
-extern const struct file_operations jfs_lmstats_proc_fops;
-extern const struct file_operations jfs_txstats_proc_fops;
-extern const struct file_operations jfs_mpstat_proc_fops;
-extern const struct file_operations jfs_xtstat_proc_fops;
+int jfs_lmstats_proc_show(struct seq_file *m, void *v);
+int jfs_txstats_proc_show(struct seq_file *m, void *v);
+int jfs_mpstat_proc_show(struct seq_file *m, void *v);
+int jfs_xtstat_proc_show(struct seq_file *m, void *v);
#define INCREMENT(x) ((x)++)
#define DECREMENT(x) ((x)--)