summaryrefslogtreecommitdiff
path: root/block-migration.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-01-21 17:09:44 +0100
committerKevin Wolf <kwolf@redhat.com>2013-01-25 18:18:33 +0100
commitacc906c6c5d5745fe7a3a2ed1bb5f0b1d6d1f21b (patch)
treee7e5ffc3794a3b4fa6bea42e1a2a8ae9a3eaf9e4 /block-migration.c
parentb812f6719c21921a819709098dc018ed151c999b (diff)
downloadqemu-acc906c6c5d5745fe7a3a2ed1bb5f0b1d6d1f21b.tar.gz
qemu-acc906c6c5d5745fe7a3a2ed1bb5f0b1d6d1f21b.tar.bz2
qemu-acc906c6c5d5745fe7a3a2ed1bb5f0b1d6d1f21b.zip
block: return count of dirty sectors, not chunks
Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block-migration.c')
-rw-r--r--block-migration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-migration.c b/block-migration.c
index 6acf3e1682..9d0b037029 100644
--- a/block-migration.c
+++ b/block-migration.c
@@ -478,7 +478,7 @@ static int64_t get_remaining_dirty(void)
dirty += bdrv_get_dirty_count(bmds->bs);
}
- return dirty * BLOCK_SIZE;
+ return dirty << BDRV_SECTOR_BITS;
}
static void blk_mig_cleanup(void)