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>
Tue, 29 Oct 2024 14:09:14 +0000 (08:09 -0600)
commit782401cfbe7fa6e2c5285a5b0a9974b832c538d0
treed7e303d07ee1be2d791b9bfe5528aa8f04ca2b73
parent38561de8ee9763b6329a20e878397b938e2c6393
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