[Qemu-block] [PATCH v2 10/16] hbitmap: Add @advance param to hbitmap_iter_next()

2018-01-22 Thread Max Reitz
This new parameter allows the caller to just query the next dirty position without moving the iterator. Signed-off-by: Max Reitz --- include/qemu/hbitmap.h | 5 - block/backup.c | 2 +- block/dirty-bitmap.c | 2 +- tests/test-hbitmap.c | 26 +- util/hbi

Re: [Qemu-block] [PATCH v2 10/16] hbitmap: Add @advance param to hbitmap_iter_next()

2018-02-27 Thread Fam Zheng
On Mon, 01/22 23:08, Max Reitz wrote: > diff --git a/tests/test-hbitmap.c b/tests/test-hbitmap.c > index 9091c639b3..2a2aa5bd43 100644 > --- a/tests/test-hbitmap.c > +++ b/tests/test-hbitmap.c > @@ -46,7 +46,7 @@ static void hbitmap_test_check(TestHBitmapData *data, > > i = first; > for

Re: [Qemu-block] [PATCH v2 10/16] hbitmap: Add @advance param to hbitmap_iter_next()

2018-02-28 Thread Max Reitz
On 2018-02-27 09:59, Fam Zheng wrote: > On Mon, 01/22 23:08, Max Reitz wrote: >> diff --git a/tests/test-hbitmap.c b/tests/test-hbitmap.c >> index 9091c639b3..2a2aa5bd43 100644 >> --- a/tests/test-hbitmap.c >> +++ b/tests/test-hbitmap.c >> @@ -46,7 +46,7 @@ static void hbitmap_test_check(TestHBitma