Re: [PATCH 0/5] add STATIC_PMD_ZERO_PAGE config option
From: Dave Hansen
Date: Thu Jun 12 2025 - 09:57:29 EST
On 6/12/25 03:50, Pankaj Raghav wrote:
> But to use huge_zero_folio, we need to pass a mm struct and the
> put_folio needs to be called in the destructor. This makes sense for
> systems that have memory constraints but for bigger servers, it does not
> matter if the PMD size is reasonable (like in x86).
So, what's the problem with calling a destructor?
In your last patch, surely bio_add_folio() can put the page/folio when
it's done. Is the real problem that you don't want to call zero page
specific code at bio teardown?