]> git.baikalelectronics.ru Git - kernel.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)
commit600c057d57a1ec748b6875a3e7c7a7bc6047abf9
treefea4b71d279dc368d57afe437acaa678be6bbabf
parentcc0cba780e487bce646cf4a7d2ec17f133393fef
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