io_uring: add helpers to decode the fixed file file_ptr
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Jun 2023 11:32:35 +0000 (13:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2023 15:36:22 +0000 (09:36 -0600)
commit4bfb0c9af832a182a54e549123a634e0070c8d4f
tree8c683eb5980341ac8682d0e6bea2df1fc59fcc97
parentf432c8c8c12b84c5465b1ffddb6feb7d6b19c1ca
io_uring: add helpers to decode the fixed file file_ptr

Remove all the open coded magic on slot->file_ptr by introducing two
helpers that return the file pointer and the flags instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230620113235.920399-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c
io_uring/filetable.h
io_uring/io_uring.c
io_uring/rsrc.c