提交 b0a3bc34 编写于 作者: P Pavel Begunkov 提交者: Joseph Qi

io_uring: remove io_free_req_find_next()

to #26323578

commit 70cf9f3270a5c5148e93a526dc1e51965259e70c upstream.

There is only one one-liner user of io_free_req_find_next(). Inline it.
Signed-off-by: NPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
Signed-off-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
Acked-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
上级 e492d6d5
...@@ -989,15 +989,10 @@ static void io_req_find_next(struct io_kiocb *req, struct io_kiocb **nxt) ...@@ -989,15 +989,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) 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);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册