io_uring/rsrc: get rid of the empty node and dummy_ubuf
authorJens Axboe <axboe@kernel.dk>
Wed, 30 Oct 2024 15:51:58 +0000 (09:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Oct 2024 16:05:49 +0000 (10:05 -0600)
commit661768085e99aad356ebc77d78ac41fd02eccbe3
tree5c21f1d1055e1a4d78330dc0aaa0c70617f19aaa
parent0f576012ae2ff08009ce91e2294832e2b88aba06
io_uring/rsrc: get rid of the empty node and dummy_ubuf

The empty node was used as a placeholder for a sparse entry, but it
didn't really solve any issues. The caller still has to check for
whether it's the empty node or not, it may as well just check for a NULL
return instead.

The dummy_ubuf was used for a sparse buffer entry, but NULL will serve
the same purpose there of ensuring an -EFAULT on attempted import.

Just use NULL for a sparse node, regardless of whether or not it's a
file or buffer resource.

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