| Submitter | Benoît Canet |
|---|---|
| Date | Jan. 16, 2013, 3:48 p.m. |
| Message ID | <1358351321-4891-42-git-send-email-benoit@irqsave.net> |
| Download | mbox | patch |
| Permalink | /patch/212739/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c index 716371c..0f095a9 100644 --- a/block/qcow2-dedup.c +++ b/block/qcow2-dedup.c @@ -524,6 +524,7 @@ static int qcow2_count_next_non_dedupable_clusters(BlockDriverState *bs, uint8_t *data, int left_to_process) { + BDRVQcowState *s = bs->opaque; int i; int ret = 0; QCowHashNode *hash_node; @@ -546,6 +547,7 @@ static int qcow2_count_next_non_dedupable_clusters(BlockDriverState *bs, qcow2_build_and_insert_hash_node(bs, &ds->phash.hash); add_hash_to_undedupable_list(bs, ds); + s->dedup_metrics.non_deduplicated_clusters++; } return i;