]> git.proxmox.com Git - mirror_qemu.git/commit
block: Assert that bdrv_release_dirty_bitmap succeeded
authorFam Zheng <famz@redhat.com>
Thu, 13 Oct 2016 21:58:26 +0000 (17:58 -0400)
committerMax Reitz <mreitz@redhat.com>
Mon, 24 Oct 2016 15:56:07 +0000 (17:56 +0200)
commit7105007a5c8ae6228d78487e1e382d53863ab2c9
tree6f4c902aa5ed27f0e78c4ffeeb4502697c9f275e
parent15891fac7dd0300f94cca081cfef51b074cb988b
block: Assert that bdrv_release_dirty_bitmap succeeded

We use a loop over bs->dirty_bitmaps to make sure the caller is
only releasing a bitmap owned by bs. Let's also assert that in this case
the caller is releasing a bitmap that does exist.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1476395910-8697-7-git-send-email-jsnow@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/dirty-bitmap.c