Commit 6b639522 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

io_uring: inline io_dismantle_req

io_dismantle_req() is hot, and not _too_ huge. Inline it, there are 3
call sites, which hopefully will turn into 2 in the future.
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/bdd2dc30716cac270c2403e99bccd6286e4ae201.1631115443.git.asml.silence@gmail.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4b628aeb
...@@ -1960,7 +1960,7 @@ static inline void io_put_file(struct file *file) ...@@ -1960,7 +1960,7 @@ static inline void io_put_file(struct file *file)
fput(file); fput(file);
} }
static void io_dismantle_req(struct io_kiocb *req) static inline void io_dismantle_req(struct io_kiocb *req)
{ {
unsigned int flags = req->flags; unsigned int flags = req->flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment