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 19:43:28 +0000 (13:43 -0600)
commitcfcb00de0a91cce2637566541c48eb1afe6c44a2
tree494adb2e22d8ab328a02d7c5922456369468ef1d
parent3ef4a4cf95fd7431d902cf4230f49549b8c93667
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