io_uring/rsrc: add an empty io_rsrc_node for sparse buffer entries
authorJens Axboe <axboe@kernel.dk>
Sat, 26 Oct 2024 16:41:51 +0000 (10:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Oct 2024 19:23:03 +0000 (13:23 -0600)
commit7058bcb1362413c55b89b7b6d6a611f2575e2264
treebefb39f5e0e2873095438439d0d45fb7b1570e49
parent7d9f982dc2092ac2bb7262b7a0cfcdc13eb68f08
io_uring/rsrc: add an empty io_rsrc_node for sparse buffer entries

Rather than allocate an io_rsrc_node for an empty/sparse buffer entry,
add a const entry that can be used for that. This just needs checking
for writing the tag, and the put check needs to check for that sparse
node rather than NULL for validity.

This avoids allocating rsrc nodes for sparse buffer entries.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/notif.c
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/splice.c