]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Remove unnecessary flush after L2 write
authorKevin Wolf <kwolf@redhat.com>
Wed, 1 Sep 2010 10:40:52 +0000 (12:40 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 13 Sep 2010 12:34:03 +0000 (14:34 +0200)
commit2c25b8131631c39145fe1f5b7745943e0e0c0406
tree925bb1f2b8a3ae58f0389c3890962c648b926582
parent5a0d460c350c58362651458824618cf6b3de3710
qcow2: Remove unnecessary flush after L2 write

When a new cluster was allocated, we only need a flush after the write to the
L2 table if it was a COW and we need to decrease the refcounts of the old
clusters.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 7ec5e6a4ca43494949465f9f9f3d9e4c7c620503)
block/qcow2-cluster.c