]> xenbits.xensource.com Git - qemu-xen.git/commit
qcow2: Fix order of refcount updates in qcow2_snapshot_goto
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Nov 2011 14:20:45 +0000 (15:20 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:51:36 +0000 (14:51 +0100)
commit43a0cac4658bbee9c9e84554712a94daa092c1cd
tree8c6a227c843bb92e62a4ed1664de865f1539d994
parent589f284b7690bbb4ed37170590bae9527ed31b42
qcow2: Fix order of refcount updates in qcow2_snapshot_goto

The refcount updates must be moved so that in the worst case we can get
cluster leaks, but refcounts may never be too low.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2-refcount.c
block/qcow2-snapshot.c