summaryrefslogtreecommitdiffstats
path: root/io_uring/kbuf.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-08-12 17:25:36 +0200
committerJens Axboe <axboe@kernel.dk>2024-08-29 16:44:42 +0200
commit2c8fa70bf3e981193ecda0eedf2100f933ef7085 (patch)
tree7885bd00d47328f81951f225eed52bd596f78a4a /io_uring/kbuf.c
parentio_uring/kbuf: add io_kbuf_commit() helper (diff)
downloadlinux-2c8fa70bf3e981193ecda0eedf2100f933ef7085.tar.xz
linux-2c8fa70bf3e981193ecda0eedf2100f933ef7085.zip
io_uring/kbuf: move io_ring_head_to_buf() to kbuf.h
In preparation for using this helper in kbuf.h as well, move it there and turn it into a macro. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/kbuf.c')
-rw-r--r--io_uring/kbuf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/io_uring/kbuf.c b/io_uring/kbuf.c
index c69f69807885..297c1d2c3c27 100644
--- a/io_uring/kbuf.c
+++ b/io_uring/kbuf.c
@@ -132,12 +132,6 @@ static int io_provided_buffers_select(struct io_kiocb *req, size_t *len,
return 0;
}
-static struct io_uring_buf *io_ring_head_to_buf(struct io_uring_buf_ring *br,
- __u16 head, __u16 mask)
-{
- return &br->bufs[head & mask];
-}
-
static void __user *io_ring_buffer_select(struct io_kiocb *req, size_t *len,
struct io_buffer_list *bl,
unsigned int issue_flags)