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>
Sat, 2 Nov 2024 21:44:30 +0000 (15:44 -0600)
commit0701db7439208951c8a7d8600668e5cfdd5f63d2
treeda619885e5375a534c829a3ca613e8e0b9320060
parentfbbb8e991d86bb7539de6161746b6c747f93f533
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