io_uring/rsrc: simplify single file node switching
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Apr 2023 14:28:13 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Apr 2023 20:45:49 +0000 (14:45 -0600)
commitc87fd583f3b5ef770af33893394ea37c7a10b5b8
tree2ccd8f4bda3a055677062fcbb9ac9e61fcfbfa03
parent9a57fffedc0ee078418a7793ab29cd3864205340
io_uring/rsrc: simplify single file node switching

At maximum io_install_fixed_file() removes only one file, so no need to
keep needs_switch state and we can call io_rsrc_node_switch() right after
removal.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/37cfb46f46160f81dced79f646e97db608994574.1681395792.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c