block-backend: make blk_co_preadv() 64bit
commit9547907705c94fa0415427ce12be418f8b68b56d
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 6 Oct 2021 13:17:08 +0000 (6 15:17 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 15 Oct 2021 20:46:44 +0000 (15 15:46 -0500)
tree930e7f9d6ac961b3d9f8e282d4e27639391fd87f
parent7242db6389261cb936bd2240351b137843d49807
block-backend: make blk_co_preadv() 64bit

For both updated functions, the type of bytes becomes wider, so all callers
should be OK with it.

blk_co_preadv() only passes its arguments to blk_do_preadv().

blk_do_preadv() passes bytes to:

 - trace_blk_co_preadv, which is updated too
 - blk_check_byte_request, throttle_group_co_io_limits_intercept,
   bdrv_co_preadv, which are already int64_t.

Note that requests exceeding INT_MAX are still restricted by
blk_check_byte_request().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211006131718.214235-3-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: grammar tweaks]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/block-backend.c
block/trace-events
include/sysemu/block-backend.h