diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2019-01-15 18:26:49 -0500 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2019-01-15 18:26:49 -0500 |
commit | 76d570dc495c56bbdcc4574bfc6d512dcb8e9aa9 (patch) | |
tree | 80b114f05c7c9f30dcd1655cfa50c1f1330572d2 /tests/test-hbitmap.c | |
parent | 4b9f0b0f7c84eea2dfb0d5be3e0254bc91319dbc (diff) | |
download | qemu-76d570dc495c56bbdcc4574bfc6d512dcb8e9aa9.zip qemu-76d570dc495c56bbdcc4574bfc6d512dcb8e9aa9.tar.gz qemu-76d570dc495c56bbdcc4574bfc6d512dcb8e9aa9.tar.bz2 |
dirty-bitmap: improve bdrv_dirty_bitmap_next_zero
Add bytes parameter to the function, to limit searched range.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Diffstat (limited to 'tests/test-hbitmap.c')
-rw-r--r-- | tests/test-hbitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-hbitmap.c b/tests/test-hbitmap.c index 5e67ac1..b04a45a 100644 --- a/tests/test-hbitmap.c +++ b/tests/test-hbitmap.c @@ -939,7 +939,7 @@ static void test_hbitmap_iter_and_reset(TestHBitmapData *data, static void test_hbitmap_next_zero_check(TestHBitmapData *data, int64_t start) { - int64_t ret1 = hbitmap_next_zero(data->hb, start); + int64_t ret1 = hbitmap_next_zero(data->hb, start, UINT64_MAX); int64_t ret2 = start; for ( ; ret2 < data->size && hbitmap_get(data->hb, ret2); ret2++) { ; |