]> asedeno.scripts.mit.edu Git - linux.git/commit
virtio_balloon: include disk/file caches memory statistics
authorTomáš Golembiovský <tgolembi@redhat.com>
Sun, 12 Nov 2017 12:05:38 +0000 (13:05 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 30 Jan 2018 23:47:33 +0000 (01:47 +0200)
commit4d32029b8ddb7be4d1699c6d8e1675ff5476d149
treefea4b71d279dc368d57afe437acaa678be6bbabf
parentd8a5b80568a9cb66810e75b182018e9edb68e8ff
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>
drivers/virtio/virtio_balloon.c
include/uapi/linux/virtio_balloon.h