Skip to content
Commit 0701db74 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent fbbb8e99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment