---
block/qcow2-dedup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c
index 454a94f..5a79906 100644
--- a/block/qcow2-dedup.c
+++ b/block/qcow2-dedup.c
@@ -289,6 +289,7 @@ static void
qcow2_build_and_insert_hash_node(BlockDriverState *bs,
QCOW_FLAG_EMPTY,
QCOW_FLAG_EMPTY);
g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node);
+ s->dedup_metrics.ram_hash_creations++;
}
/*
@@ -1043,6 +1044,7 @@ static void qcow2_dedup_insert_hash_node(BlockDriverState
*bs,
g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node);
g_tree_insert(s->dedup_tree_by_sect, &hash_node->physical_sect, hash_node);
+ s->dedup_metrics.ram_hash_creations++;
}
/* This load the QCowHashNode corresponding to a given cluster index into ram
--
1.7.10.4- [Qemu-devel] [RFC V2 03/16] qcow2: Add deduplication metrics... Benoît Canet
- [Qemu-devel] [RFC V2 11/16] qcow2: Count deduplication refco... Benoît Canet
- [Qemu-devel] [RFC V2 05/16] qcow2: Collect unaligned writes ... Benoît Canet
- [Qemu-devel] [RFC V2 01/16] qcow2: Add qcow2_co_dedup_resume... Benoît Canet
- [Qemu-devel] [RFC V2 07/16] qcow2: Collect undeduplicated cl... Benoît Canet
- [Qemu-devel] [RFC V2 15/16] qcow2: returns deduplication met... Benoît Canet
- [Qemu-devel] [RFC V2 02/16] qcow2: Enable the deduplication ... Benoît Canet
- [Qemu-devel] [RFC V2 06/16] qcow2: Collect deduplicated clus... Benoît Canet
- [Qemu-devel] [RFC V2 04/16] qcow2: Initialize deduplication ... Benoît Canet
- [Qemu-devel] [RFC V2 08/16] qcow2: Count QCowHashNode creati... Benoît Canet
- [Qemu-devel] [RFC V2 09/16] qcow2: Count QCowHashNode remova... Benoît Canet
- [Qemu-devel] [RFC V2 16/16] qapi: Return virtual block devic... Benoît Canet
- [Qemu-devel] [RFC V2 12/16] qapi: Add support for deduplicat... Benoît Canet
- [Qemu-devel] [RFC V2 13/16] block: Add deduplication metrics... Benoît Canet
