iscsi: Switch iscsi_allocmap_update() to byte-based
commit04a408fbffa634bf84cb8f23e4f30c4eb8cb4b05
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:47 +0000 (13 14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (2 18:39 +0100)
treeb366639f96f2c79f4e88efb5ae9f2ee236a5ac79
parentba059e7b1785fbb7b3a60d4706f519b1cffab1e3
iscsi: Switch iscsi_allocmap_update() to byte-based

We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based.  Convert all uses of
the allocmap (no semantic change).  Callers that already had bytes
available are simpler, and callers that now scale to bytes will be
easier to switch to byte-based in the future.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c