Revision 33304ec9
b/block/qcow2-refcount.c | ||
---|---|---|
676 | 676 |
BDRVQcowState *s = bs->opaque; |
677 | 677 |
uint64_t cluster_index; |
678 | 678 |
uint64_t old_free_cluster_index; |
679 |
int i, refcount, ret; |
|
679 |
uint64_t i; |
|
680 |
int refcount, ret; |
|
681 |
|
|
682 |
assert(nb_clusters >= 0); |
|
683 |
if (nb_clusters == 0) { |
|
684 |
return 0; |
|
685 |
} |
|
680 | 686 |
|
681 | 687 |
/* Check how many clusters there are free */ |
682 | 688 |
cluster_index = offset >> s->cluster_bits; |
Also available in: Unified diff