qcow2: Reuse refcount table in calculate_refcounts()
commit9696df219a71c6608f058ade8873d6d0b4e352fe
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:37 +0000 (22 14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (23 15:34 +0200)
tree38d3c0ca47e98015f145baaaf01e9ff16ca7d1f0
parent641bb63cd6b003ab0ca2e312a014449037d71647
qcow2: Reuse refcount table in calculate_refcounts()

We will later call calculate_refcounts multiple times, so reuse the
refcount table if possible.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c