diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-06 00:04:55 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-06-15 14:03:43 +0200 |
commit | 6af4e9ead4ec9491259c9861b1b35f9abee24a66 (patch) | |
tree | e73675471adb5001272bbfcbab116da8d8acf829 /block/qcow2.h | |
parent | 7cdd481cdf15d610f83e38f15c7e7979420c6ac0 (diff) |
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>
Diffstat (limited to 'block/qcow2.h')
-rw-r--r-- | block/qcow2.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/block/qcow2.h b/block/qcow2.h index c6e72373d0..455b6d7cfe 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -297,11 +297,8 @@ void qcow2_free_snapshots(BlockDriverState *bs); int qcow2_read_snapshots(BlockDriverState *bs); /* qcow2-cache.c functions */ -Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables, - bool writethrough); +Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables); int qcow2_cache_destroy(BlockDriverState* bs, Qcow2Cache *c); -bool qcow2_cache_set_writethrough(BlockDriverState *bs, Qcow2Cache *c, - bool enable); void qcow2_cache_entry_mark_dirty(Qcow2Cache *c, void *table); int qcow2_cache_flush(BlockDriverState *bs, Qcow2Cache *c); |