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>
Wed, 8 Sep 2010 10:39:24 +0000 (12:39 +0200)
commitaf8f6daa1e086399a1ad2fe93b923a7a272b8e77
tree7f02b3c1cb40ba84087a2395cde051558650c1a9
parentabed0762b6a20c968a4e08dff859feda36a594a1
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>
block/qcow2-cluster.c