]> git.proxmox.com Git - qemu.git/commit - block/qcow2-cache.c
qcow2: always operate caches in writeback mode
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jun 2012 22:04:55 +0000 (00:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:43 +0000 (14:03 +0200)
commit6af4e9ead4ec9491259c9861b1b35f9abee24a66
treee73675471adb5001272bbfcbab116da8d8acf829
parent7cdd481cdf15d610f83e38f15c7e7979420c6ac0
qcow2: always operate caches in writeback mode

Writethrough does not need special-casing anymore in the qcow2 caches.
The block layer adds flushes after every guest-initiated data write,
and these will also flush the qcow2 caches to the OS.

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