]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: refactor file tables alloc/free
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:44:03 +0000 (15:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:35 +0000 (19:30 -0600)
commit846a4ef22bf6d6ede4547fe8fa500385a90c64ba
treecf48bd4060386b4d29f291dd3960b47a73504413
parentf4f7d21ce46474128934caeb80dfb1e5396b596e
io_uring: refactor file tables alloc/free

Introduce a heler io_free_file_tables() doing all the cleaning, there
are several places where it's hand coded. Also move all allocations into
io_sqe_alloc_file_tables() and rename it, so all of it is in one place.

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