commit | 8371adf53c3c5ebfde1172608d3f4e126729cb10 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sat Oct 10 18:34:08 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 10 12:49:24 2020 -0600 |
tree | 2432657ad83ec5d4e84f928ddc2a633b9094f355 | |
parent | 479f517be57185087c2ae3c5e5aea0c3c6d4e5cc [diff] |
io_uring: simplify io_file_get() Keep ->needs_file_no_error check out of io_file_get(), and let callers handle it. It makes it more straightforward. Also, as the only error it can hand back -EBADF, make it return a file or NULL. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>