Lines Matching refs:req
73 struct ceph_mds_request *req; in __fh_to_dentry() local
76 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPINO, in __fh_to_dentry()
78 if (IS_ERR(req)) in __fh_to_dentry()
79 return ERR_CAST(req); in __fh_to_dentry()
84 req->r_args.getattr.mask = cpu_to_le32(mask); in __fh_to_dentry()
86 req->r_ino1 = vino; in __fh_to_dentry()
87 req->r_num_caps = 1; in __fh_to_dentry()
88 err = ceph_mdsc_do_request(mdsc, NULL, req); in __fh_to_dentry()
89 inode = req->r_target_inode; in __fh_to_dentry()
92 ceph_mdsc_put_request(req); in __fh_to_dentry()
132 struct ceph_mds_request *req; in __get_parent() local
138 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPPARENT, in __get_parent()
140 if (IS_ERR(req)) in __get_parent()
141 return ERR_CAST(req); in __get_parent()
144 req->r_inode = d_inode(child); in __get_parent()
147 req->r_ino1 = (struct ceph_vino) { in __get_parent()
156 req->r_args.getattr.mask = cpu_to_le32(mask); in __get_parent()
158 req->r_num_caps = 1; in __get_parent()
159 err = ceph_mdsc_do_request(mdsc, NULL, req); in __get_parent()
160 inode = req->r_target_inode; in __get_parent()
163 ceph_mdsc_put_request(req); in __get_parent()
218 struct ceph_mds_request *req; in ceph_get_name() local
222 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPNAME, in ceph_get_name()
224 if (IS_ERR(req)) in ceph_get_name()
225 return PTR_ERR(req); in ceph_get_name()
229 req->r_inode = d_inode(child); in ceph_get_name()
231 req->r_ino2 = ceph_vino(d_inode(parent)); in ceph_get_name()
232 req->r_locked_dir = d_inode(parent); in ceph_get_name()
233 req->r_num_caps = 2; in ceph_get_name()
234 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_get_name()
239 struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; in ceph_get_name()
249 ceph_mdsc_put_request(req); in ceph_get_name()