On Tue, Apr 29, 2025 at 11:13 PM Zi Yan <ziy@xxxxxxxxxx> wrote: > > On Mon Apr 28, 2025 at 10:41 PM EDT, Yafang Shao wrote: > > The functions hugepage_global_{enabled,always}() are currently only used in > > mm/huge_memory.c, so we can move them to mm/internal.h. They will also be > > exposed for BPF hooking in a future change. > > Why cannot BPF include huge_mm.h instead? To maintain better code organization, it would be better to separate the BPF-related logic into dedicated files. It will prevent overlap with other components and improve long-term maintainability. -- Regards Yafang