From 188a71c8eb1db815c7db83a6faea39ebbe6020ce Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Tue, 21 Jul 2020 11:07:19 +0300 Subject: [PATCH] lib: clarify docs for hugetlb in virDomainMemoryStatTags The term number is used for other stats and even for hugetlb stats in virsh man page. The term number is also more clear. Signed-off-by: Nikolay Shirokovskiy Signed-off-by: Michal Privoznik Reviewed-by: Michal Privoznik --- include/libvirt/libvirt-domain.h | 4 ++-- src/libvirt-domain.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h index f129e6a1af..8b9d9c110c 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -637,13 +637,13 @@ typedef enum { VIR_DOMAIN_MEMORY_STAT_DISK_CACHES = 10, /* - * The amount of successful huge page allocations from inside the domain via + * The number of successful huge page allocations from inside the domain via * virtio balloon. */ VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC = 11, /* - * The amount of failed huge page allocations from inside the domain via + * The number of failed huge page allocations from inside the domain via * virtio balloon. */ VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL = 12, diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 0b8c3737d5..7b01f2e4e9 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -5725,9 +5725,9 @@ virDomainGetInterfaceParameters(virDomainPtr domain, * Memory that can be reclaimed without additional I/O, typically disk * caches (in kb). * VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC - * The amount of successful huge page allocations from inside the domain + * The number of successful huge page allocations from inside the domain * VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL - * The amount of failed huge page allocations from inside the domain + * The number of failed huge page allocations from inside the domain * * Returns: The number of stats provided or -1 in case of failure. */ -- 2.47.2