]>
xen: make avail_domheap_pages() inlined into get_outstanding_claims()
authorPenny Zheng <Penny.Zheng@amd.com>
Wed, 11 Jun 2025 09:07:53 +0000 (11:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Jun 2025 09:07:53 +0000 (11:07 +0200)
commitb5157dcde497ed4434219283a4b89188b04f0b8f
tree3ce27d1a016196772f37f1bb3eb05bad6c181ac7
parentbf0cd071db2a6cdd61e612cf44accad4e0e495e4
xen: make avail_domheap_pages() inlined into get_outstanding_claims()

Function avail_domheap_pages() is only invoked by get_outstanding_claims(),
so it could be inlined into get_outstanding_claims().
Move up avail_heap_pages() to avoid declaration before
get_outstanding_claims().

Signed-off-by: Penny Zheng <Penny.Zheng@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/page_alloc.c
xen/include/xen/mm.h