Lines Matching refs:req
31 int io_madvise_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_madvise_prep() argument
34 struct io_madvise *ma = io_kiocb_to_cmd(req, struct io_madvise); in io_madvise_prep()
48 int io_madvise(struct io_kiocb *req, unsigned int issue_flags) in io_madvise() argument
51 struct io_madvise *ma = io_kiocb_to_cmd(req, struct io_madvise); in io_madvise()
58 io_req_set_res(req, ret, 0); in io_madvise()
65 int io_fadvise_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_fadvise_prep() argument
67 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise_prep()
78 int io_fadvise(struct io_kiocb *req, unsigned int issue_flags) in io_fadvise() argument
80 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise()
94 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice); in io_fadvise()
96 req_set_fail(req); in io_fadvise()
97 io_req_set_res(req, ret, 0); in io_fadvise()