io_uring/rsrc: use io_rsrc_node_lookup() consistently
authorJens Axboe <axboe@kernel.dk>
Sun, 27 Oct 2024 15:08:31 +0000 (09:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Oct 2024 14:49:44 +0000 (08:49 -0600)
commitd20999e3ac695c1898b1d608575f8cb844b82cab
treef59e4243cc7bca122eeff6e00fd3e1871c12a8c9
parentc0b9c5097cbc5743fb429b7dcb603bcf0d0de4c4
io_uring/rsrc: use io_rsrc_node_lookup() consistently

Various spots open code this helper, use the provided one. The helper
now returns the adjusted, if needed, index into the array, for the cases
where the caller needs that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 files changed:
io_uring/cancel.c
io_uring/filetable.c
io_uring/filetable.h
io_uring/io_uring.c
io_uring/msg_ring.c
io_uring/net.c
io_uring/nop.c
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/rw.c
io_uring/splice.c
io_uring/uring_cmd.c