Re: [PATCH RFC v2 17/18] mm: add free_frozen_pages_hint and put_page_hint APIs
From: David Hildenbrand (Arm)
Date: Tue Apr 21 2026 - 09:31:36 EST
On 4/21/26 15:16, Michael S. Tsirkin wrote:
> On Tue, Apr 21, 2026 at 12:56:00PM +0200, David Hildenbrand (Arm) wrote:
>> On 4/20/26 14:51, Michael S. Tsirkin wrote:
>>> Add free_frozen_pages_hint(page, order, hints) to free a page
>>> while marking it as pre-zeroed when PGHINT_ZEROED is set.
>>> The PG_zeroed flag is set after __free_pages_prepare so it
>>> survives on the free list.
>>>
>>> Add __folio_put_hint(), folio_put_hint(), and put_page_hint()
>>> wrappers for the put_page path.
>>
>> Can we defer that change?
>
> We can - it's a dependency of the balloon deflate, which you asked
> me to implement. I'm more interested in reporting, myself.
Just to be clear, I said:
"I'd assume ordinary inflating+deflating of the balloon would also end
up with pre-zeroed pages. We'd just need a (mm/balloon.c -specific)
interface to tell the buddy that the pages are zeroed."
So while I think there will be value in that in the futur once we
figure out a clean interface, I don't recall asking you to implement that?
--
Cheers,
David