]> git.proxmox.com Git - mirror_qemu.git/commit
block/qcow2: Use bdrv_pwrite_sync() in qcow2_mark_dirty()
authorAlberto Faria <afaria@redhat.com>
Thu, 9 Jun 2022 15:27:44 +0000 (16:27 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 12 Jul 2022 10:14:56 +0000 (12:14 +0200)
commit86da43220c610321f31fad4be7f1b52554f4e7a4
treed8cb13e0e8c3f2f6d0bc06db1a25535e6cd31792
parenta8f0e83cefa245dbaff8001c076e194ff54e8d1f
block/qcow2: Use bdrv_pwrite_sync() in qcow2_mark_dirty()

Use bdrv_pwrite_sync() instead of calling bdrv_pwrite() and bdrv_flush()
separately.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220609152744.3891847-11-afaria@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/qcow2.c