The logic of this function remains pretty much the same, except that
it uses count_contiguous_subclusters(), which combines the logic of
count_contiguous_clusters() / count_contiguous_clusters_unallocated()
and checks individual subclusters.
qcow2_cluster_to_subcluster_type() is not necessary as a separate
function anymore so it's inlined into its caller.
Signed-off-by: Alberto Garcia <address@hidden>
---
block/qcow2.h | 38 ++++-------
block/qcow2-cluster.c | 150 ++++++++++++++++++++++--------------------
2 files changed, 92 insertions(+), 96 deletions(-)