From c6d2283068026035a6468aae9dcde953bd7521ac Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 30 Nov 2009 18:21:20 +0100 Subject: block migration: Cleanup dirty tracking code This switches the dirty bitmap to a true bitmap, reducing its footprint (specifically in caches). It moreover fixes off-by-one bugs in set_dirty_bitmap (nb_sectors+1 were marked) and bdrv_get_dirty (limit check allowed one sector behind end of drive). And is drops redundant dirty_tracking field from BlockDriverState. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- block_int.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'block_int.h') diff --git a/block_int.h b/block_int.h index 7ebe926f5b..907e864101 100644 --- a/block_int.h +++ b/block_int.h @@ -168,8 +168,7 @@ struct BlockDriverState { int cyls, heads, secs, translation; int type; char device_name[32]; - int dirty_tracking; - uint8_t *dirty_bitmap; + unsigned long *dirty_bitmap; BlockDriverState *next; void *private; }; -- cgit v1.2.1