migration/block-dirty-bitmap: simplify dirty_bitmap_load_complete
commitf3045b9a828e99221083a4ad9905b9d7cdd4df2f
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 27 Jul 2020 19:42:28 +0000 (27 22:42 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 27 Jul 2020 20:39:59 +0000 (27 15:39 -0500)
tree31ec250d69c1684416c94c49e75834c900cd0b4b
parent8949121644b756b58d6546d86c9a49f18a0e5153
migration/block-dirty-bitmap: simplify dirty_bitmap_load_complete

bdrv_enable_dirty_bitmap_locked() call does nothing, as if we are in
postcopy, bitmap successor must be enabled, and reclaim operation will
enable the bitmap.

So, actually we need just call _reclaim_ in both if branches, and
making differences only to add an assertion seems not really good. The
logic becomes simple: on load complete we do reclaim and that's all.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <20200727194236.19551-14-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
migration/block-dirty-bitmap.c