hbitmap: add next_zero function
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 12 Oct 2017 13:53:09 +0000 (16:53 +0300)
committerJeff Cody <jcody@redhat.com>
Mon, 18 Dec 2017 15:54:13 +0000 (10:54 -0500)
commit56207df55ea546f3e72578a5920e68a346440b1a
treef3402035ecf937a994f7567663c54408e66939bf
parent411ad78115ebeb3411cf4b7622784b93dfabe259
hbitmap: add next_zero function

The function searches for next zero bit.
Also add interface for BdrvDirtyBitmap and unit test.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20171012135313.227864-2-vsementsov@virtuozzo.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/dirty-bitmap.c
include/block/dirty-bitmap.h
include/qemu/hbitmap.h
tests/test-hbitmap.c
util/hbitmap.c