From: Pavel Begunkov Date: Thu, 21 Nov 2019 20:21:00 +0000 (+0300) Subject: io_uring: remove io_free_req_find_next() X-Git-Tag: Ubuntu-5.10.0-12.13~4056^2~19 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=70cf9f3270a5c5148e93a526dc1e51965259e70c;p=mirror_ubuntu-hirsute-kernel.git 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 Signed-off-by: Jens Axboe --- 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); } /*