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>
Sun, 4 Apr 2021 21:28:42 +0000 (15:28 -0600)
commitcd3175b2bba50915c0a369fcbb3b781b3c26ed45
treea23e4b2ef9e03be573177b20922fe292a975620a
parentc3a3fc799451007f87fb8f5aea8a62b02d8a581f
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