Re: [PATCH v2 2/2] mm: wrap __find_buddy_pfn() with a necessary buddy page validation.

From: Linus Torvalds
Date: Fri Apr 01 2022 - 15:01:34 EST


On Fri, Apr 1, 2022 at 11:56 AM Zi Yan <ziy@xxxxxxxxxx> wrote:
>
> How about the patch below? If it looks good, I will send v3.

I can't see anything worrisome, but by now I've looked at several
versions and who knows what I'm missing.

Making it inline and allowing a NULL 'buddy_pfn' pointer for the cases
that don't care might be an option, but I don't think it matters
hugely.

Linus