io_uring: kill io_recv_buffer_select() wrapper
It's just a thin wrapper around io_buffer_select(), get rid of it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
0a352aaa94
commit
9396ed850f
@ -5495,14 +5495,6 @@ static int io_recvmsg_copy_hdr(struct io_kiocb *req,
|
||||
return __io_recvmsg_copy_hdr(req, iomsg);
|
||||
}
|
||||
|
||||
static struct io_buffer *io_recv_buffer_select(struct io_kiocb *req,
|
||||
unsigned int issue_flags)
|
||||
{
|
||||
struct io_sr_msg *sr = &req->sr_msg;
|
||||
|
||||
return io_buffer_select(req, &sr->len, sr->bgid, issue_flags);
|
||||
}
|
||||
|
||||
static int io_recvmsg_prep_async(struct io_kiocb *req)
|
||||
{
|
||||
int ret;
|
||||
@ -5566,7 +5558,7 @@ static int io_recvmsg(struct io_kiocb *req, unsigned int issue_flags)
|
||||
return io_setup_async_msg(req, kmsg);
|
||||
|
||||
if (req->flags & REQ_F_BUFFER_SELECT) {
|
||||
kbuf = io_recv_buffer_select(req, issue_flags);
|
||||
kbuf = io_buffer_select(req, &sr->len, sr->bgid, issue_flags);
|
||||
if (IS_ERR(kbuf))
|
||||
return PTR_ERR(kbuf);
|
||||
kmsg->fast_iov[0].iov_base = u64_to_user_ptr(kbuf->addr);
|
||||
@ -5630,7 +5622,7 @@ static int io_recv(struct io_kiocb *req, unsigned int issue_flags)
|
||||
return -ENOTSOCK;
|
||||
|
||||
if (req->flags & REQ_F_BUFFER_SELECT) {
|
||||
kbuf = io_recv_buffer_select(req, issue_flags);
|
||||
kbuf = io_buffer_select(req, &sr->len, sr->bgid, issue_flags);
|
||||
if (IS_ERR(kbuf))
|
||||
return PTR_ERR(kbuf);
|
||||
buf = u64_to_user_ptr(kbuf->addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user