From: Pavel Begunkov asml.silence@gmail.com
mainline inclusion from mainline-5.5-rc1 commit 70cf9f3270a5c5148e93a526dc1e51965259e70c category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=27 CVE: NA ---------------------------
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 Signed-off-by: Zhihao Cheng chengzhihao1@huawei.com Signed-off-by: yangerkun yangerkun@huawei.com Reviewed-by: zhangyi (F) yi.zhang@huawei.com Signed-off-by: Cheng Jian cj.chengjian@huawei.com --- fs/io_uring.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/fs/io_uring.c b/fs/io_uring.c index d7ea7e0ee473..192a5903df34 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -983,15 +983,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); }
/*