]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_balloon: separate vm events into a function
authorzhenwei pi <pizhenwei@bytedance.com>
Tue, 23 Apr 2024 03:41:06 +0000 (11:41 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:39 +0000 (08:42 -0400)
commitfdba68d2adf8d9ae680e23e8b8ba79330baa45bc
tree907fe9d2c66869d441067e7200a2c1e19eea2a7c
parent8b6c724cdab85d8923dd8c474a5a9464228379c5
virtio_balloon: separate vm events into a function

All the VM events related statistics have dependence on
'CONFIG_VM_EVENT_COUNTERS', separate these events into a function to
make code clean. Then we can remove 'CONFIG_VM_EVENT_COUNTERS' from
'update_balloon_stats'.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20240423034109.1552866-2-pizhenwei@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
drivers/virtio/virtio_balloon.c