Eric Blake
d1dde7149e
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: qemu-stable@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20181002233314.30159-1-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
2018-10-29 16:23:17 -04:00
..
2016-07-12 16:19:16 +02:00
2018-10-29 13:35:22 +00:00
2018-09-25 15:50:15 +02:00
2018-08-15 10:12:35 +08:00
2017-02-21 11:14:07 +00:00
2018-09-25 15:50:15 +02:00
2018-10-02 18:47:55 +02:00
2016-03-22 22:20:15 +01:00
2017-09-22 14:11:25 +02:00
2017-09-22 14:11:23 +02:00
2016-05-19 16:42:28 +02:00
2017-07-24 12:42:55 +01:00
2018-10-02 18:47:55 +02:00
2017-03-03 16:40:02 +01:00
2016-09-29 14:13:39 +02:00
2018-03-12 08:59:03 +01:00
2016-09-29 14:13:39 +02:00
2016-02-04 17:01:04 +00:00
2018-10-05 16:14:22 +04:00
2018-08-27 10:51:44 +02:00
2017-05-07 09:57:51 +03:00
2018-10-19 14:51:34 +02:00
2018-01-24 19:20:19 +02:00
2018-01-24 19:20:19 +02:00
2017-02-13 17:27:13 +00:00
2016-02-04 17:01:04 +00:00
2018-10-29 16:23:17 -04:00
2016-04-06 09:52:07 +08:00
2017-01-31 10:10:14 +11:00
2016-03-22 22:20:17 +01:00
2017-02-21 11:14:07 +00:00
2016-08-03 18:44:57 +02:00
2018-06-29 12:22:28 +01:00
2018-05-04 08:27:53 +02:00
2017-01-16 13:25:18 +00:00
2018-05-15 14:58:44 +01:00
2018-06-01 16:01:29 +01:00
2018-10-02 18:47:55 +02:00
2018-10-02 18:47:55 +02:00
2018-04-27 18:05:22 +10:00
2018-08-23 18:46:25 +02:00
2016-02-04 17:01:04 +00:00
2018-06-29 12:22:28 +01:00
2018-10-02 18:47:55 +02:00
2018-10-02 18:47:55 +02:00
2017-10-10 09:45:00 -07:00
2017-03-14 13:26:37 +01:00
2016-08-03 18:44:56 +02:00
2018-06-15 14:49:44 +02:00
2016-07-13 13:26:02 +02:00
2018-03-27 13:05:28 +01:00
2017-12-19 09:25:27 +00:00
2018-09-25 15:50:15 +02:00
2018-10-19 15:47:09 +02:00
2016-02-04 17:01:04 +00:00
2018-10-05 16:14:22 +04:00
2017-04-28 18:48:11 +02:00
2018-03-13 18:06:06 +00:00
2018-06-28 19:05:32 +02:00
2018-06-28 19:05:31 +02:00
2018-08-23 18:46:25 +02:00
2016-02-04 17:01:04 +00:00
2018-10-19 13:44:03 +02:00
2018-09-26 08:55:54 -07:00
2018-10-02 18:47:55 +02:00
2016-07-04 16:49:33 +03:00
2018-03-12 16:12:47 +01:00
2018-02-05 13:54:39 +01:00
2017-11-15 09:34:51 +01:00
2018-04-05 14:37:38 +02:00
2017-03-19 11:12:12 +01:00
2017-03-17 12:54:21 +01:00
2017-09-26 14:46:23 +02:00
2016-05-18 15:04:27 +03:00
2018-09-26 10:46:21 +08:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00
2017-12-20 22:01:24 +08:00
2018-05-20 08:55:01 +03:00