Re: [PATCH v7 4/7] mm: pghot: Precision mode for pghot

From: Bharata B Rao

Date: Wed May 06 2026 - 02:18:14 EST


On 05-May-26 12:11 AM, Donet Tom wrote:
> Hi Bharata
>
> On 5/4/26 11:39 AM, Bharata B Rao wrote:
>> +#include <linux/pghot.h>
>> +#include <linux/jiffies.h>
>> +#include <linux/memory-tiers.h>
>> +
>> +bool pghot_nid_valid(int nid)
>
> I might be missing something, but since pghot_nid_valid() exists in both pghot-
> default.c and pghot-precise.c, would it make sense to move it to a header file
> as a static inline function?

It exists in both modes of pghot but the implementations differ. Hence it can't
reside as static inline function in pghot.h.

Regards,
Bharata.