]> Git Repo - qemu.git/commit
bitmap: Update count after a merge
authorEric Blake <[email protected]>
Mon, 29 Oct 2018 20:23:17 +0000 (16:23 -0400)
committerJohn Snow <[email protected]>
Mon, 29 Oct 2018 20:23:17 +0000 (16:23 -0400)
commitd1dde7149e376d72b422a529ec4bf3ed47f3ba30
treecb9309127c2851e6e13394a4253fcb235d46873b
parentd9782022bda7f8eccaf961044e9efe980dc90c04
bitmap: Update count after a merge

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 get the contents of C.

In the worst case, we may falsely regard the bitmap as empty when
it has had new writes merged into it.

Fixes: be58721db
CC: [email protected]
Signed-off-by: Eric Blake <[email protected]>
Signed-off-by: John Snow <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-id: 20181002233314[email protected]
Signed-off-by: John Snow <[email protected]>
util/hbitmap.c
This page took 0.02543 seconds and 4 git commands to generate.