Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/kbuf: remove obsolete buf_nr_pages and update comments

The buf_nr_pages field in io_buffer_list was previously used to
determine whether the buffer list uses ring-provided buffers or classic
provided buffers. This is now determined by checking the IOBL_BUF_RING
flag.

Remove the buf_nr_pages field and update related comments.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Joanne Koong and committed by
Jens Axboe
84692a15 f779ac0b

+4 -5
+2 -2
include/linux/io_uring_types.h
··· 327 327 328 328 /* 329 329 * Modifications are protected by ->uring_lock and ->mmap_lock. 330 - * The flags, buf_pages and buf_nr_pages fields should be stable 331 - * once published. 330 + * The buffer list's io mapped region should be stable once 331 + * published. 332 332 */ 333 333 struct xarray io_bl_xa; 334 334
+2 -3
io_uring/kbuf.h
··· 14 14 15 15 struct io_buffer_list { 16 16 /* 17 - * If ->buf_nr_pages is set, then buf_pages/buf_ring are used. If not, 18 - * then these are classic provided buffers and ->buf_list is used. 17 + * If the IOBL_BUF_RING flag is set, then buf_ring is used. If not, then 18 + * these are classic provided buffers and ->buf_list is used. 19 19 */ 20 20 union { 21 21 struct list_head buf_list; ··· 27 27 __u16 bgid; 28 28 29 29 /* below is for ring provided buffers */ 30 - __u16 buf_nr_pages; 31 30 __u16 nr_entries; 32 31 __u16 head; 33 32 __u16 mask;