qed: Switch to .bdrv_co_block_status()
commitb8d739fd6fb295a7562c506c65f2137199a509f9
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:53 +0000 (13 14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (2 18:39 +0100)
treeafdc02e03d4d7006c215bb75efe3207d4e9243ed
parenta320fb04b66a2189b6cbd7924aa7bfaaded79afe
qed: Switch to .bdrv_co_block_status()

We are gradually moving away from sector-based interfaces, towards
byte-based.  Update the qed driver accordingly, taking the opportunity
to inline qed_is_allocated_cb() into its lone caller (the callback
used to be important, until we switched qed to coroutines).  There is
no intent to optimize based on the want_zero flag for this format.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qed.c