Re: [Qemu-block] [PATCH] bitmap: Update count after a merge

2018-09-27 Thread Vladimir Sementsov-Ogievskiy
27.09.2018 06:11, Eric Blake wrote: We need an accurate count of the number of bits set in a bitmap after a merge. In particular, since the merge operation short-circuits a merge from an empty source, if you have bitmaps A, B, and C where B started empty, then merge C into B, and B into A, an

[Qemu-block] [PATCH] bitmap: Update count after a merge

2018-09-26 Thread Eric Blake
We need an accurate count of the number of bits set in a bitmap after a merge. In particular, since the merge operation short-circuits a merge from an empty source, if you have bitmaps A, B, and C where B started empty, then merge C into B, and B into A, an inaccurate count meant that A did not