Re: [PATCH 1/2] huge_mm.h: is_huge_zero_folio(NULL) should return false
From: Max Kellermann
Date: Wed Aug 27 2025 - 00:39:31 EST
On Wed, Aug 27, 2025 at 3:55 AM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> Isn't it a bug to call is_huge_zero_folio() before the huge_zero_folio
> has been created?
I have no idea, but folios_put_refs() calls it and I don't see why it
shouldn't be allowed to do that. What else should folios_put_refs()
do?
(Thanks Zi Yan, I'll send v2 with your suggestions.)