io_uring/rsrc: extract SCM file put helper
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 11 Apr 2023 11:06:08 +0000 (12:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Apr 2023 18:09:41 +0000 (12:09 -0600)
commitd581076b6a85c6f8308a4ba2bdcd82651f5183df
treeb10345de51c30b4f7a2230a44e5cbc0e4f3a81b4
parent2933ae6eaa05e8db6ad33a3ca12af18d2a25358c
io_uring/rsrc: extract SCM file put helper

SCM file accounting is a slow path and is only used for UNIX files.
Extract a helper out of io_rsrc_file_put() that does the SCM
unaccounting.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/58cc7bffc2ee96bec8c2b89274a51febcbfa5556.1681210788.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c