Skip to content

Commit aeda081

Browse files
ukernelidryomov
authored andcommitted
ceph: don't show symlink target in debugfs/mdsc
symlink target is useless for debug and can be very long. It's annoying to show it in debugfs/mdsc. Signed-off-by: Yan, Zheng <zyan@redhat.com>
1 parent 6c93df5 commit aeda081

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ceph/debugfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int mdsc_show(struct seq_file *s, void *p)
109109
path ? path : "");
110110
spin_unlock(&req->r_old_dentry->d_lock);
111111
kfree(path);
112-
} else if (req->r_path2) {
112+
} else if (req->r_path2 && req->r_op != CEPH_MDS_OP_SYMLINK) {
113113
if (req->r_ino2.ino)
114114
seq_printf(s, " #%llx/%s", req->r_ino2.ino,
115115
req->r_path2);

0 commit comments

Comments
 (0)