]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: fix #ifdef'd qcow2_check_refcounts() callers
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 15 Jun 2012 15:41:07 +0000 (16:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Jul 2012 13:53:01 +0000 (15:53 +0200)
commitb35278f75450e57c134a153e6da9744c1db8382f
treea788e9290016a66eff66dc82885f7c9dfbe372cd
parent84988cf910a6881f2180fdcec516b60f8f0dc8c4
qcow2: fix #ifdef'd qcow2_check_refcounts() callers

The DEBUG_ALLOC qcow2.h macro enables additional consistency checks
throughout the code.  This makes it easier to spot corruptions that are
introduced during development.  Since consistency check is an expensive
operation the DEBUG_ALLOC macro is used to compile checks out in normal
builds and qcow2_check_refcounts() calls missed the addition of a new
function argument.

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