io_uring/rsrc: add io_reset_rsrc_node() helper
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 15:02:38 +0000 (09:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 15:08:46 +0000 (09:08 -0600)
commitb90a97a43696f75554c49a98d2113a8f30c49f95
tree06d914fe77613b6980ff4a5d226f2a54df2891b3
parentfb10aaf1725d9a6fd434daf85c4cbacbecda1069
io_uring/rsrc: add io_reset_rsrc_node() helper

Puts and reset an existing node in a slot, if one exists. Returns true
if a node was there, false if not. This helps cleanup some of the code
that does a lookup just to clear an existing node.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c
io_uring/rsrc.c
io_uring/rsrc.h