diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-10-04 22:02:58 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 14:49:54 +0300 |
commit | 867f8fa5aeb7fa51290bf3567ce2bbc45580a469 (patch) | |
tree | 15b2c5da947c743232c23ae3867526f107b6fa0e /fs | |
parent | d17e56eb4907c72054e63c71a2123d32b04ebd67 (diff) | |
download | linux-867f8fa5aeb7fa51290bf3567ce2bbc45580a469.tar.xz |
io_uring: inline io_req_needs_clean()
There is only a single user of io_req_needs_clean() inline it.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6111d0221ef4b439cad401e135dd6a5f990a0501.1633373302.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/io_uring.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index c7dea155f43a..dc83effa8317 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1816,11 +1816,6 @@ static void io_req_complete_post(struct io_kiocb *req, long res, io_cqring_ev_posted(ctx); } -static inline bool io_req_needs_clean(struct io_kiocb *req) -{ - return req->flags & IO_REQ_CLEAN_FLAGS; -} - static inline void io_req_complete_state(struct io_kiocb *req, long res, unsigned int cflags) { @@ -1963,7 +1958,7 @@ static inline void io_dismantle_req(struct io_kiocb *req) { unsigned int flags = req->flags; - if (unlikely(io_req_needs_clean(req))) + if (unlikely(flags & IO_REQ_CLEAN_FLAGS)) io_clean_op(req); if (!(flags & REQ_F_FIXED_FILE)) io_put_file(req->file); |