]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Make perform_cow() call do_perform_cow() twice
authorAlberto Garcia <berto@igalia.com>
Mon, 19 Jun 2017 13:40:04 +0000 (16:40 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:13 +0000 (14:51 +0200)
commit99450c6fb9ac85e2c8097156fed78b8ef1d610e0
tree3f6edc6feaf1fc2abb83d5cd8e4f59e161bbbe08
parente034f5bcbc1139903b27c00bd832ee7c4b065810
qcow2: Make perform_cow() call do_perform_cow() twice

Instead of calling perform_cow() twice with a different COW region
each time, call it just once and make perform_cow() handle both
regions.

This patch simply moves code around. The next one will do the actual
reordering of the COW operations.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c