qcow2: Batch flushes for COW
authorKevin Wolf <kwolf@redhat.com>
Fri, 14 Jan 2011 14:55:38 +0000 (15:55 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:41:49 +0000 (16:41 +0100)
commit3de0a2944bdb3047dce275560631834bcb4afe22
tree3549f925839388bae068f15ca148d5282ccd5beb
parent29c1a7301af752de6721e031d31faa48887204bd
qcow2: Batch flushes for COW

qcow2 calls bdrv_flush() after performing COW in order to ensure that the
L2 table change is never written before the copy is safe on disk. Now that the
L2 table is cached, we can wait with flushing until we write out the next L2
table.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cache.c
block/qcow2-cluster.c
block/qcow2.h