Skip to content

Commit 8d9c090

Browse files
ukernelidryomov
authored andcommitted
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>
1 parent 32f6511 commit 8d9c090

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

‎fs/ceph/debugfs.c‎

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,6 @@ static int caps_show(struct seq_file *s, void *p)
139139
return 0;
140140
}
141141

142-
static 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-
159142
static int mds_sessions_show(struct seq_file *s, void *ptr)
160143
{
161144
struct ceph_fs_client *fsc = s->private;
@@ -195,7 +178,6 @@ static int mds_sessions_show(struct seq_file *s, void *ptr)
195178
CEPH_DEFINE_SHOW_FUNC(mdsmap_show)
196179
CEPH_DEFINE_SHOW_FUNC(mdsc_show)
197180
CEPH_DEFINE_SHOW_FUNC(caps_show)
198-
CEPH_DEFINE_SHOW_FUNC(dentry_lru_show)
199181
CEPH_DEFINE_SHOW_FUNC(mds_sessions_show)
200182

201183

@@ -231,7 +213,6 @@ void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc)
231213
debugfs_remove(fsc->debugfs_mds_sessions);
232214
debugfs_remove(fsc->debugfs_caps);
233215
debugfs_remove(fsc->debugfs_mdsc);
234-
debugfs_remove(fsc->debugfs_dentry_lru);
235216
}
236217

237218
int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
@@ -291,14 +272,6 @@ int ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
291272
if (!fsc->debugfs_caps)
292273
goto out;
293274

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-
302275
return 0;
303276

304277
out:

0 commit comments

Comments
 (0)