]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lib: clarify docs for hugetlb in virDomainMemoryStatTags
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Tue, 21 Jul 2020 08:07:19 +0000 (11:07 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Jul 2020 15:24:39 +0000 (17:24 +0200)
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 <nshirokovskiy@virtuozzo.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
include/libvirt/libvirt-domain.h
src/libvirt-domain.c

index f129e6a1afe23e377ccbb58df0564f5f3a129178..8b9d9c110c1908a2ccb032b3fe40c918f543f9f1 100644 (file)
@@ -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,
index 0b8c3737d5e0dc6e1c8475819d82162c1d513679..7b01f2e4e9361eee10a92e9ee0fedb616850c1a5 100644 (file)
@@ -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.
  */