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 14:49:12 +0000 (08:49 -0600)
commit1f2bb8b5d88e9fa637e352e33d35d3df4ddce11c
tree6e6c63148a62cf9c75eb9b75d50c506709a1282a
parent2aee89bea35ffb1d350e04322ced5335e012c0eb
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