io_uring: ignore ->buf_index if REQ_F_BUFFER_SELECT isn't set
authorJens Axboe <axboe@kernel.dk>
Fri, 29 Apr 2022 15:25:12 +0000 (09:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 May 2022 12:29:06 +0000 (06:29 -0600)
commitbb68d504f7c4183178b00c1af68fca870728e7e0
treeb319ff4ef3dc015d9a6a63da0e992163140fa9ab
parente5b003495e934321f78ba1f95e48da4a8c3a3a35
io_uring: ignore ->buf_index if REQ_F_BUFFER_SELECT isn't set

There's no point in validity checking buf_index if the request doesn't
have REQ_F_BUFFER_SELECT set, as we will never use it for that case.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c