21 #include <linux/ctype.h>
22 #include <linux/module.h>
25 #include <asm/uaccess.h>
33 #ifdef CONFIG_JFS_DEBUG
34 static int jfs_loglevel_proc_show(
struct seq_file *
m,
void *
v)
46 const char __user *
buffer,
size_t count, loff_t *ppos)
54 if (c < '0' || c >
'9')
56 jfsloglevel = c -
'0';
62 .open = jfs_loglevel_proc_open,
66 .write = jfs_loglevel_proc_write,
74 #ifdef CONFIG_JFS_STATISTICS
75 {
"lmstats", &jfs_lmstats_proc_fops, },
76 {
"txstats", &jfs_txstats_proc_fops, },
77 {
"xtstat", &jfs_xtstat_proc_fops, },
78 {
"mpstat", &jfs_mpstat_proc_fops, },
80 #ifdef CONFIG_JFS_DEBUG
81 {
"TxAnchor", &jfs_txanchor_proc_fops, },
82 {
"loglevel", &jfs_loglevel_proc_fops }
85 #define NPROCENT ARRAY_SIZE(Entries)
87 void jfs_proc_init(
void)
94 for (i = 0; i < NPROCENT; i++)
95 proc_create(Entries[i].
name, 0, base, Entries[i].proc_fops);
98 void jfs_proc_clean(
void)
103 for (i = 0; i < NPROCENT; i++)