diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-03-14 10:59:46 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-03 07:14:20 -0600 |
commit | 25a2c188a0a00b3d9f2057798aa86fe6b04377bf (patch) | |
tree | 563d913524c3f1ea2b9a90c000a2aa8222828dd8 /io_uring/kbuf.h | |
parent | ba56b63242d12df088ed9a701cad320e6b306dfe (diff) |
io_uring/kbuf: add buffer_list->is_mapped member
Rather than rely on checking buffer_list->buf_pages or ->buf_nr_pages,
add a separate member that tracks if this is a ring mapped provided
buffer list or not.
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/kbuf.h')
-rw-r--r-- | io_uring/kbuf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/kbuf.h b/io_uring/kbuf.h index c23e15d7d3ca..61b9c7dade9d 100644 --- a/io_uring/kbuf.h +++ b/io_uring/kbuf.h @@ -23,6 +23,9 @@ struct io_buffer_list { __u16 nr_entries; __u16 head; __u16 mask; + + /* ring mapped provided buffers */ + __u8 is_mapped; }; struct io_buffer { |