]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Switch load_bitmap_data() to byte-based iteration
authorEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 14:55:23 +0000 (09:55 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commitab94db6f7609e562b5f68cc71807d5d50e24e224
treeb3a18b7afb46b7ca87cbbb171421f27a1a9acbd8
parentb85ee45334585c49c5489a303336df119408763a
qcow2: Switch load_bitmap_data() to byte-based iteration

Now that we have adjusted the majority of the calls this function
makes to be byte-based, it is easier to read the code if it makes
passes over the image using bytes rather than sectors.

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