io_u: if we're doing backwards IO, wrap to end (not start)
authorJens Axboe <axboe@fb.com>
Mon, 9 May 2016 19:31:01 +0000 (13:31 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 9 May 2016 19:31:01 +0000 (13:31 -0600)
commitb0a84f48509d76032455842f1482901e3ab12afd
tree204518a06d41e12d8db8baf1d1fd2041f6b9dd44
parentc465cd14ca958dfdb87bb1998add722d62ae3691
io_u: if we're doing backwards IO, wrap to end (not start)

If we have a job with a start file offset and we're doing holed
IO, we want to wrap to the start offset for forwards holes, but
to the end for backwards holes.

Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c