]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xen/balloon: rename alloc/free_xenballooned_pages
authorJuergen Gross <jgross@suse.com>
Tue, 2 Nov 2021 09:22:34 +0000 (10:22 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 4 Nov 2021 17:59:44 +0000 (12:59 -0500)
commit121f2faca2c0a1b3af5581213c04817b3f3ceeb9
treed90afd97070b5861631846f5f40708d2eb5c31b7
parent40fdea0284bb20814399da0484a658a96c735d90
xen/balloon: rename alloc/free_xenballooned_pages

alloc_xenballooned_pages() and free_xenballooned_pages() are used as
direct replacements of xen_alloc_unpopulated_pages() and
xen_free_unpopulated_pages() in case CONFIG_XEN_UNPOPULATED_ALLOC isn't
defined.

Guard both functions with !CONFIG_XEN_UNPOPULATED_ALLOC and rename them
to the xen_*() variants they are replacing. This allows to remove some
ifdeffery from the xen.h header file. Adapt the prototype of the
functions to match.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20211102092234.17852-1-jgross@suse.com
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/balloon.c
include/xen/balloon.h
include/xen/xen.h