diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2020-12-02 19:12:45 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-12-13 18:06:10 +0300 |
commit | d1df458cbfdb0c3384c03c7fbcb1689bc02a746c (patch) | |
tree | beb19693f61322a53297b89b64210a17f142213e /drivers/net/hyperv/netvsc.c | |
parent | 7f3f227b41e81f8669e906c49a240c1678c65cfe (diff) | |
download | linux-d1df458cbfdb0c3384c03c7fbcb1689bc02a746c.tar.xz |
hv_balloon: do adjust_managed_page_count() when ballooning/un-ballooning
Unlike virtio_balloon/virtio_mem/xen balloon drivers, Hyper-V balloon driver
does not adjust managed pages count when ballooning/un-ballooning and this leads
to incorrect stats being reported, e.g. unexpected 'free' output.
Note, the calculation in post_status() seems to remain correct: ballooned out
pages are never 'available' and we manually add dm->num_pages_ballooned to
'commited'.
Suggested-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20201202161245.2406143-3-vkuznets@redhat.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
0 files changed, 0 insertions, 0 deletions