diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-08-11 13:53:43 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-11 10:42:57 -0600 |
commit | 00b0db562485fbb259cd4054346208ad0885d662 (patch) | |
tree | 54c04cc1c7a58c451a78bf3c640dcb93e4ddf899 /io_uring/io_uring.h | |
parent | b2e74db55dd93d6db22a813c9a775b5dbf87c560 (diff) | |
download | linux-00b0db562485fbb259cd4054346208ad0885d662.tar.gz linux-00b0db562485fbb259cd4054346208ad0885d662.tar.bz2 linux-00b0db562485fbb259cd4054346208ad0885d662.zip |
io_uring: open code io_fill_cqe_req()
io_fill_cqe_req() is only called from one place, open code it, and
rename __io_fill_cqe_req().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f432ce75bb1c94cadf0bd2add4d6aa510bd1fb36.1691757663.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r-- | io_uring/io_uring.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index ff153af28236..3aa208fbe905 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -133,8 +133,7 @@ static inline struct io_uring_cqe *io_get_cqe(struct io_ring_ctx *ctx) return io_get_cqe_overflow(ctx, false); } -static inline bool __io_fill_cqe_req(struct io_ring_ctx *ctx, - struct io_kiocb *req) +static inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, struct io_kiocb *req) { struct io_uring_cqe *cqe; @@ -168,14 +167,6 @@ static inline bool __io_fill_cqe_req(struct io_ring_ctx *ctx, return true; } -static inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, - struct io_kiocb *req) -{ - if (likely(__io_fill_cqe_req(ctx, req))) - return true; - return io_req_cqe_overflow(req); -} - static inline void req_set_fail(struct io_kiocb *req) { req->flags |= REQ_F_FAIL; |