Re: [PATCH v5 1/4] mm: Add address apis for ptdescs
From: Dave Hansen
Date: Wed Feb 18 2026 - 15:27:30 EST
On 2/18/26 12:23, Vishal Moola (Oracle) wrote:
>> What do you think is a reasonable name for freeing?
>>
>> pgtable_free() is defined for sparc and powerpc. I could rename them
>> prefixed with "__" to get the name since they only have 1-2 internal
>> callers.
> Matthew brought another question to my attention in this particular
> scenario. Should pat/set_memory's alloc_*_page() use pte_alloc_one()
> instead of get_zeroed_page()? Is there any reason not to?
They're not special in any way I can think of. There's no reason I know
of to keep them special and avoid converting them.