io_uring: don't check req->file in io_fsync_prep()
authorJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 17:06:02 +0000 (11:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:22 +0000 (20:59 +0200)
commit056e1e7c17136cea36267383a43d586509566931
tree956dd2e12d6ae2fe05f676bf51d0b4e3a61743eb
parent198932a14aeb19a15cf19e51e151d023bc4cd648
io_uring: don't check req->file in io_fsync_prep()

commit ec858afda857e361182ceafc3d2ba2b164b8e889 upstream.

This is a leftover from the really old days where we weren't able to
track and error early if we need a file and it wasn't assigned. Kill
the check.

Cc: stable@vger.kernel.org # v5.15+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c