]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited88733e562ec866f644d1b6fbadb493c6894ed2
tree47b53f8a845490678ea7469ea250986f026e9019
parent40348ad3b2568fa433dd11e7a167bdff9be7330e
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