diff options
Diffstat (limited to 'fs/ceph/debugfs.c')
-rw-r--r-- | fs/ceph/debugfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 6d59006bfa27..16b54aa31f08 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c | |||
@@ -93,6 +93,8 @@ static int mdsc_show(struct seq_file *s, void *p) | |||
93 | } else if (req->r_path1) { | 93 | } else if (req->r_path1) { |
94 | seq_printf(s, " #%llx/%s", req->r_ino1.ino, | 94 | seq_printf(s, " #%llx/%s", req->r_ino1.ino, |
95 | req->r_path1); | 95 | req->r_path1); |
96 | } else { | ||
97 | seq_printf(s, " #%llx", req->r_ino1.ino); | ||
96 | } | 98 | } |
97 | 99 | ||
98 | if (req->r_old_dentry) { | 100 | if (req->r_old_dentry) { |
@@ -102,7 +104,8 @@ static int mdsc_show(struct seq_file *s, void *p) | |||
102 | path = NULL; | 104 | path = NULL; |
103 | spin_lock(&req->r_old_dentry->d_lock); | 105 | spin_lock(&req->r_old_dentry->d_lock); |
104 | seq_printf(s, " #%llx/%.*s (%s)", | 106 | seq_printf(s, " #%llx/%.*s (%s)", |
105 | ceph_ino(req->r_old_dentry_dir), | 107 | req->r_old_dentry_dir ? |
108 | ceph_ino(req->r_old_dentry_dir) : 0, | ||
106 | req->r_old_dentry->d_name.len, | 109 | req->r_old_dentry->d_name.len, |
107 | req->r_old_dentry->d_name.name, | 110 | req->r_old_dentry->d_name.name, |
108 | path ? path : ""); | 111 | path ? path : ""); |