]> git.proxmox.com Git - mirror_qemu.git/commit - util/hbitmap.c
util/hbitmap: Add an API to reset all set bits in hbitmap
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 22 May 2015 01:29:46 +0000 (09:29 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Jun 2015 14:06:16 +0000 (15:06 +0100)
commitc6a8c3283f1d53e360073bdb32f87a97e78e2880
treefb2710f814a4c5ddd36096ac781168ecb3adee6e
parent6e40b3bfc7e82823cf4df5f0bf668f56db41e53a
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>
block.c
include/qemu/hbitmap.h
tests/test-hbitmap.c
util/hbitmap.c