3 #include <linux/device.h>
4 #include <linux/slab.h>
5 #include <linux/module.h>
6 #include <linux/ctype.h>
17 #ifdef CONFIG_DEBUG_FS
21 static int mdsmap_show(
struct seq_file *
s,
void *
p)
31 fsc->
mdsc->mdsmap->m_session_timeout);
33 fsc->
mdsc->mdsmap->m_session_autoclose);
34 for (i = 0; i < fsc->
mdsc->mdsmap->m_max_mds; i++) {
36 &fsc->
mdsc->mdsmap->m_info[
i].addr;
37 int state = fsc->
mdsc->mdsmap->m_info[
i].state;
49 static int mdsc_show(
struct seq_file *s,
void *p)
87 ceph_ino(req->
r_dentry->d_parent->d_inode),
126 static int caps_show(
struct seq_file *s,
void *p)
137 total, avail, used, reserved, min);
141 static int dentry_lru_show(
struct seq_file *s,
void *
ptr)
167 static
int congestion_kb_set(
void *
data,
u64 val)
175 static int congestion_kb_get(
void *
data,
u64 *
val)
184 congestion_kb_set,
"%llu\n");
189 dout(
"ceph_fs_debugfs_cleanup\n");
203 dout(
"ceph_fs_debugfs_init\n");
205 fsc->debugfs_congestion_kb =
210 &congestion_kb_fops);
211 if (!fsc->debugfs_congestion_kb)
214 snprintf(name,
sizeof(name),
"../../bdi/%s",
220 if (!fsc->debugfs_bdi)
228 if (!fsc->debugfs_mdsmap)
236 if (!fsc->debugfs_mdsc)
244 if (!fsc->debugfs_caps)
251 &dentry_lru_show_fops);
252 if (!fsc->debugfs_dentry_lru)