• Home
  • Raw
  • Download

Lines Matching refs:req

53 	struct ceph_mds_request *req;  in mdsc_show()  local
61 req = rb_entry(rp, struct ceph_mds_request, r_node); in mdsc_show()
63 if (req->r_request && req->r_session) in mdsc_show()
64 seq_printf(s, "%lld\tmds%d\t", req->r_tid, in mdsc_show()
65 req->r_session->s_mds); in mdsc_show()
66 else if (!req->r_request) in mdsc_show()
67 seq_printf(s, "%lld\t(no request)\t", req->r_tid); in mdsc_show()
69 seq_printf(s, "%lld\t(no session)\t", req->r_tid); in mdsc_show()
71 seq_printf(s, "%s", ceph_mds_op_name(req->r_op)); in mdsc_show()
73 if (req->r_got_unsafe) in mdsc_show()
78 if (req->r_inode) { in mdsc_show()
79 seq_printf(s, " #%llx", ceph_ino(req->r_inode)); in mdsc_show()
80 } else if (req->r_dentry) { in mdsc_show()
81 path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in mdsc_show()
85 spin_lock(&req->r_dentry->d_lock); in mdsc_show()
87 ceph_ino(d_inode(req->r_dentry->d_parent)), in mdsc_show()
88 req->r_dentry, in mdsc_show()
90 spin_unlock(&req->r_dentry->d_lock); in mdsc_show()
92 } else if (req->r_path1) { in mdsc_show()
93 seq_printf(s, " #%llx/%s", req->r_ino1.ino, in mdsc_show()
94 req->r_path1); in mdsc_show()
96 seq_printf(s, " #%llx", req->r_ino1.ino); in mdsc_show()
99 if (req->r_old_dentry) { in mdsc_show()
100 path = ceph_mdsc_build_path(req->r_old_dentry, &pathlen, in mdsc_show()
104 spin_lock(&req->r_old_dentry->d_lock); in mdsc_show()
106 req->r_old_dentry_dir ? in mdsc_show()
107 ceph_ino(req->r_old_dentry_dir) : 0, in mdsc_show()
108 req->r_old_dentry, in mdsc_show()
110 spin_unlock(&req->r_old_dentry->d_lock); in mdsc_show()
112 } else if (req->r_path2 && req->r_op != CEPH_MDS_OP_SYMLINK) { in mdsc_show()
113 if (req->r_ino2.ino) in mdsc_show()
114 seq_printf(s, " #%llx/%s", req->r_ino2.ino, in mdsc_show()
115 req->r_path2); in mdsc_show()
117 seq_printf(s, " %s", req->r_path2); in mdsc_show()