qcow2: Pass a QEMUIOVector to do_perform_cow_{read,write}()
authorAlberto Garcia <berto@igalia.com>
Mon, 19 Jun 2017 13:40:07 +0000 (16:40 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:13 +0000 (14:51 +0200)
commit86b862c431ae5effa80a095c9c989a5a9976ead1
treeb85e4bc8250da1fac937c5dc63cf8f4d9a37435e
parentb3cf1c7cf8714af96def49668a267fa4075242ca
qcow2: Pass a QEMUIOVector to do_perform_cow_{read,write}()

Instead of passing a single buffer pointer to do_perform_cow_write(),
pass a QEMUIOVector. This will allow us to merge the write requests
for the COW regions and the actual data into a single one.

Although do_perform_cow_read() does not strictly need to change its
API, we're doing it here as well for consistency.

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