Lines Matching refs:req

25 void io_xattr_cleanup(struct io_kiocb *req)
27 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
36 static void io_xattr_finish(struct io_kiocb *req, int ret)
38 req->flags &= ~REQ_F_NEED_CLEANUP;
40 io_xattr_cleanup(req);
41 io_req_set_res(req, ret, 0);
44 static int __io_getxattr_prep(struct io_kiocb *req,
47 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
51 if (unlikely(req->flags & REQ_F_FIXED_FILE))
77 req->flags |= REQ_F_NEED_CLEANUP;
78 req->flags |= REQ_F_FORCE_ASYNC;
82 int io_fgetxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
84 return __io_getxattr_prep(req, sqe);
87 int io_getxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
89 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
93 ret = __io_getxattr_prep(req, sqe);
108 int io_fgetxattr(struct io_kiocb *req, unsigned int issue_flags)
110 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
115 ret = do_getxattr(mnt_idmap(req->file->f_path.mnt),
116 req->file->f_path.dentry,
119 io_xattr_finish(req, ret);
123 int io_getxattr(struct io_kiocb *req, unsigned int issue_flags)
125 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
144 io_xattr_finish(req, ret);
148 static int __io_setxattr_prep(struct io_kiocb *req,
151 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
155 if (unlikely(req->flags & REQ_F_FIXED_FILE))
175 req->flags |= REQ_F_NEED_CLEANUP;
176 req->flags |= REQ_F_FORCE_ASYNC;
180 int io_setxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
182 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
186 ret = __io_setxattr_prep(req, sqe);
201 int io_fsetxattr_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
203 return __io_setxattr_prep(req, sqe);
206 static int __io_setxattr(struct io_kiocb *req, unsigned int issue_flags,
209 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
221 int io_fsetxattr(struct io_kiocb *req, unsigned int issue_flags)
227 ret = __io_setxattr(req, issue_flags, &req->file->f_path);
228 io_xattr_finish(req, ret);
232 int io_setxattr(struct io_kiocb *req, unsigned int issue_flags)
234 struct io_xattr *ix = io_kiocb_to_cmd(req, struct io_xattr);
244 ret = __io_setxattr(req, issue_flags, &path);
252 io_xattr_finish(req, ret);