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>
Sun, 4 Apr 2021 21:28:41 +0000 (15:28 -0600)
commit6787b535ee161defc9c6aeda5fd4a44ada2d5e4c
tree6ba2b2c02f4bdaf5f1daa26212630b20d034cf72
parent7531e346c21d976ddd044fcd519ff366db971087
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