]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
io_uring: encapsulate fixed files into struct
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:44:04 +0000 (15:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:35 +0000 (19:30 -0600)
commita04b0ac0cb64fc403822de9288d68e6511ce6dc2
tree49ee657d38c654a000dc0852858b265aa4463a84
parent846a4ef22bf6d6ede4547fe8fa500385a90c64ba
io_uring: encapsulate fixed files into struct

Add struct io_fixed_file representing a single registered file, first to
hide ugly struct file **, which may be misleading, and secondly to
retype it to unsigned long as conversions to it and back to file * for
handling and masking FFS_* flags are getting nasty.

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