aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2019-01-31 04:08:40 -0500
committerIlya Dryomov <idryomov@gmail.com>2019-03-05 12:55:17 -0500
commit8d9c0906acef6c281ead4e353c93d54d08c994c8 (patch)
tree1c3866f3b404a07e3b377eb9e53e4d13a58215b7 /fs/ceph
parent32f6511a69eb36db9c6b9d77b8429837079f73b6 (diff)
ceph: remove dentry_lru file from debugfs
The file shows all dentries in cephfs mount. It's not very useful. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/debugfs.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c
index abdf98deeec4..98365e74cb4a 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -139,23 +139,6 @@ static int caps_show(struct seq_file *s, void *p)
139 return 0; 139 return 0;
140} 140}
141 141
142static int dentry_lru_show(struct seq_file *s, void *ptr)
143{
144 struct ceph_fs_client *fsc = s->private;
145 struct ceph_mds_client *mdsc = fsc->mdsc;
146 struct ceph_dentry_info *di;
147
148 spin_lock(&mdsc->dentry_lru_lock);
149 list_for_each_entry(di, &mdsc->dentry_lru, lru) {
150 struct dentry *dentry = di->dentry;
151 seq_printf(s, "%p %p\t%pd\n",
152 di, dentry, dentry);
153 }
154 spin_unlock(&mdsc->dentry_lru_lock);
155
156 return 0;
157}
158
159static int mds_sessions_show(struct seq_file *s, void *ptr) 142static int mds_sessions_show(struct seq_file *s, void *ptr)
160{ 143{
161 struct ceph_fs_client *fsc = s->private; 144 struct ceph_fs_client *fsc = s->private;
@@ -195,7 +178,6 @@ static int mds_sessions_show(struct seq_file *s, void *ptr)
195CEPH_DEFINE_SHOW_FUNC(mdsmap_show) 178CEPH_DEFINE_SHOW_FUNC(mdsmap_show)
196CEPH_DEFINE_SHOW_FUNC(mdsc_show) 179CEPH_DEFINE_SHOW_FUNC(mdsc_show)
197CEPH_DEFINE_SHOW_FUNC(caps_show) 180CEPH_DEFINE_SHOW_FUNC(caps_show)
198CEPH_DEFINE_SHOW_FUNC(dentry_lru_show)
199CEPH_DEFINE_SHOW_FUNC(mds_sessions_show) 181CEPH_DEFINE_SHOW_FUNC(mds_sessions_show)
200 182
201 183
@@ -231,7 +213,6 @@ void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc)
231 debugfs_remove(fsc->debugfs_mds_sessions); 213 debugfs_remove(fsc->debugfs_mds_sessions);
232 debugfs_remove(fsc->debugfs_caps); 214 debugfs_remove(fsc->debugfs_caps);
233 debugfs_remove(fsc->debugfs_mdsc); 215 debugfs_remove(fsc->debugfs_mdsc);
234 debugfs_remove(fsc->debugfs_dentry_lru);
235} 216}
236 217
237int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) 218int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
@@ -291,14 +272,6 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
291 if (!fsc->debugfs_caps) 272 if (!fsc->debugfs_caps)
292 goto out; 273 goto out;
293 274
294 fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru",
295 0400,
296 fsc->client->debugfs_dir,
297 fsc,
298 &dentry_lru_show_fops);
299 if (!fsc->debugfs_dentry_lru)
300 goto out;
301
302 return 0; 275 return 0;
303 276
304out: 277out: