projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b628ae
)
io_uring: inline io_dismantle_req
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 8 Sep 2021 15:40:50 +0000
(16:40 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:52 +0000
(
05:49
-0600)
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>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 6917f96f0e82575045e67376f918e280dafd743b..43ed9f6821fbe66a142bfb7154474728b38c579c 100644
(file)
--- 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;