diff options
| author | Vladimir Sementsov-Ogievskiy | 2020-04-29 15:08:46 +0200 |
|---|---|---|
| committer | Max Reitz | 2020-05-05 14:03:28 +0200 |
| commit | 42ac214406e092038b13f02c2ff9768d4dd41e1b (patch) | |
| tree | 12aaae0de129bdb401f3fee793455231aeb21822 /include | |
| parent | block/block-copy: add state pointer to BlockCopyTask (diff) | |
| download | qemu-42ac214406e092038b13f02c2ff9768d4dd41e1b.tar.gz qemu-42ac214406e092038b13f02c2ff9768d4dd41e1b.tar.xz qemu-42ac214406e092038b13f02c2ff9768d4dd41e1b.zip | |
block/block-copy: refactor task creation
Instead of just relying on the comment "Called only on full-dirty
region" in block_copy_task_create() let's move initial dirty area
search directly to block_copy_task_create(). Let's also use effective
bdrv_dirty_bitmap_next_dirty_area instead of looping through all
non-dirty clusters.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200429130847.28124-5-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
