t/io_uring: unify getting of the offset
authorJens Axboe <axboe@kernel.dk>
Thu, 1 Sep 2022 00:40:14 +0000 (18:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Sep 2022 00:40:14 +0000 (18:40 -0600)
commit501565a1eebdcbca5943152e924133279f56cfbe
tree2d4117cbcb42f86c455d418fb0d4f2b8fb9549b1
parente453f369ecf4db4913ef6916603037f2d7141035
t/io_uring: unify getting of the offset

Move it into a helper, and use it from all three methods. This also fixes
an issue with the aio method not honoring random IO or not.

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