Re: [Qemu-devel] [PATCH for 2.6 3/3] hbitmap: Drop "granularity"

2015-11-22 Thread Fam Zheng
On Fri, 11/20 19:22, Vladimir Sementsov-Ogievskiy wrote: > On 20.11.2015 12:59, Fam Zheng wrote: > >Sometimes confused with the granularity with coarse levels in HBitmap, the > >granularity in the hbitmap_alloc is not an essential concept of a bitmap. > >Now > >that all callers except the test

[Qemu-devel] [PATCH for 2.6 3/3] hbitmap: Drop "granularity"

2015-11-20 Thread Fam Zheng
Sometimes confused with the granularity with coarse levels in HBitmap, the granularity in the hbitmap_alloc is not an essential concept of a bitmap. Now that all callers except the test code use zero, it's possible to drop the parameter to make the interface cleaner and more intuitive. Test code

Re: [Qemu-devel] [PATCH for 2.6 3/3] hbitmap: Drop "granularity"

2015-11-20 Thread Vladimir Sementsov-Ogievskiy
On 20.11.2015 12:59, Fam Zheng wrote: Sometimes confused with the granularity with coarse levels in HBitmap, the granularity in the hbitmap_alloc is not an essential concept of a bitmap. Now that all callers except the test code use zero, it's possible to drop the parameter to make the