powerpc/pseries/cmm: Use adjust_managed_page_count() insted of totalram_pages_*
authorDavid Hildenbrand <david@redhat.com>
Thu, 31 Oct 2019 14:29:26 +0000 (15:29 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:01 +0000 (16:58 +1100)
commit287b89773d8172df049f0f4c27946b2ae4ac4b41
tree7e0ddcff8515f8d045d28a9db26fd0bb49251916
parent4a1745c5bf92232f115e28296475dc42254b1c7d
powerpc/pseries/cmm: Use adjust_managed_page_count() insted of totalram_pages_*

adjust_managed_page_count() performs a totalram_pages_add(), but also
adjusts the managed pages of the zone. Let's use that instead, similar
to virtio-balloon. Use it before freeing a page.

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191031142933.10779-6-david@redhat.com
arch/powerpc/platforms/pseries/cmm.c