From 25a2c188a0a00b3d9f2057798aa86fe6b04377bf Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 14 Mar 2023 10:59:46 -0600 Subject: 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 Signed-off-by: Jens Axboe --- io_uring/kbuf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'io_uring/kbuf.h') 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 { -- cgit v1.2.3-58-ga151