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: kill dead struct io_buffer_list 'nr_entries' member

This is only ever assigned, never used. The only used part is the
calculated mask, which is used for indexing. Kill 'nr_entries'.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

-2
-1
io_uring/kbuf.c
··· 680 680 } 681 681 #endif 682 682 683 - bl->nr_entries = reg.ring_entries; 684 683 bl->mask = reg.ring_entries - 1; 685 684 bl->flags |= IOBL_BUF_RING; 686 685 bl->buf_ring = br;
-1
io_uring/kbuf.h
··· 27 27 __u16 bgid; 28 28 29 29 /* below is for ring provided buffers */ 30 - __u16 nr_entries; 31 30 __u16 head; 32 31 __u16 mask; 33 32