block/dirty-bitmap: refactor bdrv_dirty_bitmap_next
commitef9041a7b8c46001c8c44eab3eac9920739d9b36
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 16 Sep 2019 14:19:11 +0000 (16 17:19 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 17 Oct 2019 21:02:32 +0000 (17 17:02 -0400)
tree5afd3323e74ae33289eefaab28ee47502987883a
parent1e638301604ab8e05c54bee59584c7cd81ebe4d2
block/dirty-bitmap: refactor bdrv_dirty_bitmap_next

bdrv_dirty_bitmap_next is always used in same pattern. So, split it
into _next and _first, instead of combining two functions into one and
add FOR_EACH_DIRTY_BITMAP macro.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190916141911.5255-5-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
block.c
block/dirty-bitmap.c
block/qcow2-bitmap.c
include/block/dirty-bitmap.h
migration/block-dirty-bitmap.c