Skip to content

Commit 939ab64

Browse files
committed
Merge remote-tracking branch 'remotes/ericb/tags/pull-bitmaps-2020-07-17' into staging
bitmaps patches for 2020-07-17 - improve corner-case of bitmap migration # gpg: Signature made Fri 17 Jul 2020 16:10:07 BST # gpg: using RSA key 71C2CC22B1C4602927D2F3AAA7A16B4A2527436A # gpg: Good signature from "Eric Blake <[email protected]>" [full] # gpg: aka "Eric Blake (Free Software Programmer) <[email protected]>" [full] # gpg: aka "[jpeg image of size 6874]" [full] # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2 F3AA A7A1 6B4A 2527 436A * remotes/ericb/tags/pull-bitmaps-2020-07-17: migration/block-dirty-bitmap: fix add_bitmaps_to_list Signed-off-by: Peter Maydell <[email protected]>
2 parents 97f750b + 7cb0151 commit 939ab64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

migration/block-dirty-bitmap.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,11 @@ static int add_bitmaps_to_list(BlockDriverState *bs, const char *bs_name)
274274
DirtyBitmapMigBitmapState *dbms;
275275
Error *local_err = NULL;
276276

277-
bitmap = bdrv_dirty_bitmap_first(bs);
277+
FOR_EACH_DIRTY_BITMAP(bs, bitmap) {
278+
if (bdrv_dirty_bitmap_name(bitmap)) {
279+
break;
280+
}
281+
}
278282
if (!bitmap) {
279283
return 0;
280284
}

0 commit comments

Comments
 (0)