projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17e56e
)
io_uring: inline io_req_needs_clean()
author
Pavel Begunkov
<asml.silence@gmail.com>
Mon, 4 Oct 2021 19:02:58 +0000
(20:02 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:54 +0000
(
05:49
-0600)
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>
fs/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index c7dea155f43afc87f0bcdf26db21f76da260b0cb..dc83effa8317b0f75678366f1a12a724f5ea43fa 100644
(file)
--- 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);