diff options
| author | Brendan Jackman <jackmanb@google.com> | 2026-07-03 12:31:44 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-07-25 21:49:27 -0700 |
| commit | 8609c1f83671f6b2744f5a768f44bce81375a61c (patch) | |
| tree | ffac0e5ec24db9b632aa0d5c4eff0a5ed7194c90 /mm/memory_hotplug.c | |
| parent | 8138d7b2f4b57489ff39054a7fbbf6703712706f (diff) | |
| download | linux-next-8609c1f83671f6b2744f5a768f44bce81375a61c.tar.gz linux-next-8609c1f83671f6b2744f5a768f44bce81375a61c.zip | |
mm: split out internal page_alloc.h
internal.h is a bit bloated, seems like time for a page_alloc.h.
Where it wasn't obvious, the heuristic for deciding what goes into this
new header was "does it support/correspond to a definition in
mm/page_alloc.c?"
Only need to include it from ~20 .c files out of ~150 so this does seem
like a genuine reduction in scopes, which is nice. And there's no
circular internal.h<->page_alloc.h dependency, so it seems worthwhile to
split this up before that inevitably emerges!
Link: https://lore.kernel.org/20260703-alloc-trylock-v5-4-c87b714e19d3@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Suggested-by: "David Hildenbrand (Arm)" <david@kernel.org>
Link: https://lore.kernel.org/all/41e92bab-6882-401a-8de9-154adbdcfb36@kernel.org/
Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
| -rw-r--r-- | mm/memory_hotplug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 8b137328dcf0..11ab2f7bc7f3 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -40,6 +40,7 @@ #include <asm/tlbflush.h> #include "internal.h" +#include "page_alloc.h" #include "shuffle.h" enum { |
