diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-09-08 16:40:50 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 05:49:52 -0600 |
commit | 6b639522f63f82437350038a4925633f769e4ec8 (patch) | |
tree | de49b079d5fb28f3828bf12a3f0e485607aee752 /fs/io_uring.c | |
parent | 4b628aeb69cc49adf56b9c1fde43558143e810f5 (diff) | |
download | lwn-6b639522f63f82437350038a4925633f769e4ec8.tar.gz lwn-6b639522f63f82437350038a4925633f769e4ec8.zip |
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: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/bdd2dc30716cac270c2403e99bccd6286e4ae201.1631115443.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 6917f96f0e82..43ed9f6821fb 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1960,7 +1960,7 @@ static inline void io_put_file(struct file *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; |