diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2015-05-22 09:29:46 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-06-23 15:06:16 +0100 |
commit | c6a8c3283f1d53e360073bdb32f87a97e78e2880 (patch) | |
tree | fb2710f814a4c5ddd36096ac781168ecb3adee6e /block.c | |
parent | 6e40b3bfc7e82823cf4df5f0bf668f56db41e53a (diff) | |
download | qemu-c6a8c3283f1d53e360073bdb32f87a97e78e2880.tar.gz qemu-c6a8c3283f1d53e360073bdb32f87a97e78e2880.tar.bz2 qemu-c6a8c3283f1d53e360073bdb32f87a97e78e2880.zip |
util/hbitmap: Add an API to reset all set bits in hbitmap
The function bdrv_clear_dirty_bitmap() is updated to use
faster hbitmap_reset_all() call.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 555E868A.60506@cn.fujitsu.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3513,7 +3513,7 @@ void bdrv_reset_dirty_bitmap(BdrvDirtyBitmap *bitmap, void bdrv_clear_dirty_bitmap(BdrvDirtyBitmap *bitmap) { assert(bdrv_dirty_bitmap_enabled(bitmap)); - hbitmap_reset(bitmap->bitmap, 0, bitmap->size); + hbitmap_reset_all(bitmap->bitmap); } void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, |