diff options
author | John Snow <jsnow@redhat.com> | 2015-06-08 16:49:15 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-06-12 15:54:01 +0200 |
commit | 5270b6a0d0cf41e49d634007ace40f5dfc381940 (patch) | |
tree | 58092fe88f926ebdee7839eef746cf583e3988b1 /block.c | |
parent | b8684454e152ca2e100f4b59d80de2be27186206 (diff) | |
download | qemu-5270b6a0d0cf41e49d634007ace40f5dfc381940.zip qemu-5270b6a0d0cf41e49d634007ace40f5dfc381940.tar.gz qemu-5270b6a0d0cf41e49d634007ace40f5dfc381940.tar.bz2 |
block: record new size in bdrv_dirty_bitmap_truncate
ce1ffea8 neglected to update the BdrvDirtyBitmap structure
itself for internal consistency. It's currently not an issue,
but for migration and persistence series this will cause headaches.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3224,6 +3224,7 @@ static void bdrv_dirty_bitmap_truncate(BlockDriverState *bs) continue; } hbitmap_truncate(bitmap->bitmap, size); + bitmap->size = size; } } |