summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2019-11-21 21:21:00 +0100
committerJens Axboe <axboe@kernel.dk>2019-11-26 03:56:11 +0100
commit70cf9f3270a5c5148e93a526dc1e51965259e70c (patch)
tree8277c15a01dc80dc9e890c1c21f9308682b68e99 /fs/io_uring.c
parentio_uring: add likely/unlikely in io_get_sqring() (diff)
downloadlinux-70cf9f3270a5c5148e93a526dc1e51965259e70c.tar.xz
linux-70cf9f3270a5c5148e93a526dc1e51965259e70c.zip
io_uring: remove io_free_req_find_next()
There is only one one-liner user of io_free_req_find_next(). Inline it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--fs/io_uring.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 63e0448f3f8d..6d8665e8f0e8 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -984,15 +984,10 @@ static void io_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt)
}
}
-static void io_free_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt)
-{
- io_req_find_next(req, nxt);
- __io_free_req(req);
-}
-
static void io_free_req(struct io_kiocb *req)
{
- io_free_req_find_next(req, NULL);
+ io_req_find_next(req, NULL);
+ __io_free_req(req);
}
/*