From: Nikolay Shirokovskiy Date: Tue, 21 Jul 2020 08:07:19 +0000 (+0300) Subject: lib: clarify docs for hugetlb in virDomainMemoryStatTags X-Git-Tag: v6.6.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188a71c8eb1db815c7db83a6faea39ebbe6020ce;p=thirdparty%2Flibvirt.git 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 --- 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. */