]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring: remove io_free_req_find_next()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Nov 2019 20:21:00 +0000 (23:21 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
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>
fs/io_uring.c

index 63e0448f3f8d956f416688663a8847eed0b1c903..6d8665e8f0e823faacf840072ba275687d80cdae 100644 (file)
@@ -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);
 }
 
 /*