io_uring: remove __io_file_supports_nowait
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Jun 2023 11:32:28 +0000 (13:32 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jun 2023 15:36:21 +0000 (09:36 -0600)
commitb9a6c9459a5aec7bfd9b763554d15148367f1806
treee4ada2e4738f9c68726b8a9259bed59aa3f76da3
parent4826c59453b3b4677d6bf72814e7ababdea86949
io_uring: remove __io_file_supports_nowait

Now that this only checks O_NONBLOCK and FMODE_NOWAIT, the helper is
complete overkilļ, and the comments are confusing bordering to wrong.
Just inline the check into the caller.

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