backup: Use Bitmap to replace "s->bitmap"
commitb2f56462d51a49c28d2a7b214b3ae8e8d3329f1f
authorFam Zheng <famz@redhat.com>
Tue, 8 Mar 2016 04:44:52 +0000 (8 12:44 +0800)
committerMax Reitz <mreitz@redhat.com>
Mon, 14 Mar 2016 16:35:05 +0000 (14 17:35 +0100)
treec64b4a83442932b3cfff060cfab8a8cbb297949d
parentb8f45cdf7827e39f9a1e6cc446f5972cc6144237
backup: Use Bitmap to replace "s->bitmap"

"s->bitmap" tracks done sectors, we only check bit states without using any
iterator which HBitmap is good for. Switch to "Bitmap" which is simpler and
more memory efficient.

Meanwhile, rename it to done_bitmap, to reflect the intention.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 1457412306-18940-2-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup.c