summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/virtio_balloon.h
diff options
context:
space:
mode:
authorTomáš Golembiovský <tgolembi@redhat.com>2017-11-12 13:05:38 +0100
committerMichael S. Tsirkin <mst@redhat.com>2018-01-31 01:47:33 +0200
commit4d32029b8ddb7be4d1699c6d8e1675ff5476d149 (patch)
treefea4b71d279dc368d57afe437acaa678be6bbabf /include/uapi/linux/virtio_balloon.h
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff (diff)
downloadlinux-stable-4d32029b8ddb7be4d1699c6d8e1675ff5476d149.tar.gz
linux-stable-4d32029b8ddb7be4d1699c6d8e1675ff5476d149.tar.bz2
linux-stable-4d32029b8ddb7be4d1699c6d8e1675ff5476d149.zip
virtio_balloon: include disk/file caches memory statistics
Add a new field VIRTIO_BALLOON_S_CACHES to virtio_balloon memory statistics protocol. The value represents all disk/file caches. In this case it corresponds to the sum of values Buffers+Cached+SwapCached from /proc/meminfo. Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/uapi/linux/virtio_balloon.h')
-rw-r--r--include/uapi/linux/virtio_balloon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h
index 343d7ddefe04..4e8b8304b793 100644
--- a/include/uapi/linux/virtio_balloon.h
+++ b/include/uapi/linux/virtio_balloon.h
@@ -52,7 +52,8 @@ struct virtio_balloon_config {
#define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */
#define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
#define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */
-#define VIRTIO_BALLOON_S_NR 7
+#define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */
+#define VIRTIO_BALLOON_S_NR 8
/*
* Memory statistics structure.