On 05/07/2015 07:12 PM, Wen Congyang wrote: > The function bdrv_clear_dirty_bitmap() is updated to use > faster hbitmap_reset_all() call. > > Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> > Signed-off-by: zhanghailiang <zhang.zhanghaili...@huawei.com> > Signed-off-by: Gonglei <arei.gong...@huawei.com> > Acked-by: Paolo Bonzini <pbonz...@redhat.com> > --- > block.c | 2 +- > include/qemu/hbitmap.h | 8 ++++++++ > tests/test-hbitmap.c | 38 ++++++++++++++++++++++++++++++++++++++ > util/hbitmap.c | 13 +++++++++++++ > 4 files changed, 60 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> > +void hbitmap_reset_all(HBitmap *hb) > +{ > + unsigned int i; > + > + /* Same as hbitmap_alloc() except memset() */ maybe s/except memset()/except for memset() instead of malloc()/ -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature