migration/block-dirty-bitmap: refactor state global variables
commit3b52726ec0e2f5c5732fe5f9d76af700463b73d3
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 27 Jul 2020 19:42:26 +0000 (27 22:42 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 27 Jul 2020 20:39:59 +0000 (27 15:39 -0500)
tree91433ca0d202d5a35d5ba4734341a35bcb221975
parentd0cccbd1183eccc731deafa1b4c5a2c9dcedca08
migration/block-dirty-bitmap: refactor state global variables

Move all state variables into one global struct. Reduce global
variable usage, utilizing opaque pointer where possible.

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