Re: [PATCH v3 1/2] x86/mm: Handle alloc failure in phys_*_init()

From: Dave Hansen
Date: Wed Jun 11 2025 - 15:36:30 EST


On 6/11/25 12:26, Em Sharnoff wrote:
> 2. Change the phys_*_init() functions to return int, and directly update
> max_pfn_mapped from within them. They already call update_page_count(),
> maybe this is similar?

That seems like the most straightforward. Each time they update a
mapping, they call a helper which bumps up 'max_pfn_mapped'.