summaryrefslogtreecommitdiffstats
path: root/include/block/dirty-bitmap.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-09-27 14:23:50 +0200
committerJohn Snow2019-10-17 23:02:32 +0200
commitf88676c149d3c7cde2710c137aa5ef31e7f92eb4 (patch)
tree571c7320deee46d80811cd84b552740fc48fba1e /include/block/dirty-bitmap.h
parentiotests: add test-case to 165 to test reopening qcow2 bitmaps to RW (diff)
downloadqemu-f88676c149d3c7cde2710c137aa5ef31e7f92eb4.tar.gz
qemu-f88676c149d3c7cde2710c137aa5ef31e7f92eb4.tar.xz
qemu-f88676c149d3c7cde2710c137aa5ef31e7f92eb4.zip
block/qcow2-bitmap: get rid of bdrv_has_changed_persistent_bitmaps
Firstly, no reason to optimize failure path. Then, function name is ambiguous: it checks for readonly and similar things, but someone may think that it will ignore normal bitmaps which was just unchanged, and this is in bad relation with the fact that we should drop IN_USE flag for unchanged bitmaps in the image. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20190927122355.7344-5-vsementsov@virtuozzo.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/block/dirty-bitmap.h')
-rw-r--r--include/block/dirty-bitmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h
index 257f0f6704..958e7474fb 100644
--- a/include/block/dirty-bitmap.h
+++ b/include/block/dirty-bitmap.h
@@ -95,7 +95,6 @@ bool bdrv_has_readonly_bitmaps(BlockDriverState *bs);
bool bdrv_dirty_bitmap_get_autoload(const BdrvDirtyBitmap *bitmap);
bool bdrv_dirty_bitmap_get_persistence(BdrvDirtyBitmap *bitmap);
bool bdrv_dirty_bitmap_inconsistent(const BdrvDirtyBitmap *bitmap);
-bool bdrv_has_changed_persistent_bitmaps(BlockDriverState *bs);
BdrvDirtyBitmap *bdrv_dirty_bitmap_first(BlockDriverState *bs);
BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BdrvDirtyBitmap *bitmap);