hbitmap: Add @advance param to hbitmap_iter_next()
commita33fbb4f8b64226becf502a123733776ce319b24
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Jun 2018 18:18:16 +0000 (13 20:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 18 Jun 2018 15:04:55 +0000 (18 17:04 +0200)
treef561b258d5c978b7dfd957aefd489d95482ae744
parentec9f10fe064f2abb9dc60a9fa580d8d0933f2acf
hbitmap: Add @advance param to hbitmap_iter_next()

This new parameter allows the caller to just query the next dirty
position without moving the iterator.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20180613181823.13618-8-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup.c
block/dirty-bitmap.c
include/qemu/hbitmap.h
tests/test-hbitmap.c
util/hbitmap.c