Skip to content

Commit fb3331f

Browse files
calebsanderaxboe
authored andcommitted
io_uring/rsrc: remove unused constants
IO_NODE_ALLOC_CACHE_MAX has been unused since commit fbbb8e9 ("io_uring/rsrc: get rid of io_rsrc_node allocation cache") removed the rsrc_node_cache. IO_RSRC_TAG_TABLE_SHIFT and IO_RSRC_TAG_TABLE_MASK have been unused since commit 7029acd ("io_uring/rsrc: get rid of per-ring io_rsrc_node list") removed the separate tag table for registered nodes. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Li Zetao <lizetao1@huawei.com> Link: https://lore.kernel.org/r/20250219033444.2020136-1-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1fc61ee commit fb3331f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

io_uring/rsrc.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
#include <linux/lockdep.h>
66

7-
#define IO_NODE_ALLOC_CACHE_MAX 32
8-
9-
#define IO_RSRC_TAG_TABLE_SHIFT (PAGE_SHIFT - 3)
10-
#define IO_RSRC_TAG_TABLE_MAX (1U << IO_RSRC_TAG_TABLE_SHIFT)
11-
#define IO_RSRC_TAG_TABLE_MASK (IO_RSRC_TAG_TABLE_MAX - 1)
12-
137
enum {
148
IORING_RSRC_FILE = 0,
159
IORING_RSRC_BUFFER = 1,

0 commit comments

Comments
 (0)