io_uring: don't duplicate ->file check in sfr
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 18 Feb 2021 18:29:39 +0000 (18:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Feb 2021 20:13:18 +0000 (13:13 -0700)
commit441960f3b9b8ee6aeea847e3e67093e0840e7059
treeb3b16e04aef5f748c19c457dbe9ab8c6e0e23a17
parent1155c76a248364dd182bde90fea6f5682a6a766f
io_uring: don't duplicate ->file check in sfr

IORING_OP_SYNC_FILE_RANGE is marked as .needs_file, so the common path
will take care of assigning and validating req->file, no need to
duplicate it in io_sfr_prep().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c