io_uring: encapsulate rsrc node manipulations
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:43 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit82fbcfa996e0b0f66ae0187082b0704d0ba50bdd
tree47b53f8a845490678ea7469ea250986f026e9019
parentf3baed39929edc5fa0ce7a897567153c87551776
io_uring: encapsulate rsrc node manipulations

io_rsrc_node_get() and io_rsrc_node_set() are always used together,
merge them into one so most users don't even see io_rsrc_node and don't
need to care about it.

It helped to catch io_sqe_files_register() inferring rsrc data argument
for get and set differently, not a problem but a good sign.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/0827b080b2e61b3dec795380f7e1a1995595d41f.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c