diff options
author | Pavel Begunkov | 2021-06-14 02:36:24 +0100 |
---|---|---|
committer | Jens Axboe | 2021-06-14 08:23:13 -0600 |
commit | aeab9506ef50d23b350d1822c324023c9e1cb783 (patch) | |
tree | db97cc3bdb65d091d0c01cce0ba7c65e35bed33e | |
parent | 78cc687be9c5420d743346f78bb8af9d59a903f9 (diff) |
io_uring: inline io_iter_do_read()
There are only two calls in source code of io_iter_do_read(), the
function is small and pretty hot though is failed to get inlined.
Makr it as inline.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/25a26dae7660da73fbc2244b361b397ef43d3caf.1623634182.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-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 b49dc2d74e84..d665c9419ad3 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3253,7 +3253,7 @@ static bool io_rw_should_retry(struct io_kiocb *req) return true; } -static int io_iter_do_read(struct io_kiocb *req, struct iov_iter *iter) +static inline int io_iter_do_read(struct io_kiocb *req, struct iov_iter *iter) { if (req->file->f_op->read_iter) return call_read_iter(req->file, &req->rw.kiocb, iter); |