]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: Switch mirror_dirty_init() to byte-based iteration
authorEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 14:55:21 +0000 (09:55 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commit23ca459a455c83ffadb03ab1eedf0b6cff62bfeb
treeaf965f0ad035dcf2f4ebbcb32ca7ca85584ad3e0
parente0d7f73e63427521aabd7311a86fe90fd02897c0
mirror: Switch mirror_dirty_init() 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: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c