diff options
| author | Ma Wupeng <[email protected]> | 2022-06-14 09:21:54 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2022-06-15 10:14:08 +0000 |
| commit | abd62377c0064302df680ab33f4c05290ba24af8 (patch) | |
| tree | 508f1c7330482a3660b417330bf7b53f249ce342 | |
| parent | mm: Ratelimited mirrored memory related warning messages (diff) | |
| download | kernel-abd62377c0064302df680ab33f4c05290ba24af8.tar.gz kernel-abd62377c0064302df680ab33f4c05290ba24af8.zip | |
mm: Limit warning message in vmemmap_verify() to once
For a system only have limited mirrored memory or some numa node without
mirrored memory, the per node vmemmap page_structs prefer to allocate
memory from mirrored region, which will lead to vmemmap_verify() in
vmemmap_populate_basepages() report lots of warning message.
This patch change the frequency of "potential offnode page_structs" warning
messages to only once to avoid a very long print during bootup.
Signed-off-by: Ma Wupeng <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Mike Rapoport <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
| -rw-r--r-- | mm/sparse-vmemmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c index f4fa61dbbee3..f34c6889b0a6 100644 --- a/mm/sparse-vmemmap.c +++ b/mm/sparse-vmemmap.c @@ -528,7 +528,7 @@ void __meminit vmemmap_verify(pte_t *pte, int node, int actual_node = early_pfn_to_nid(pfn); if (node_distance(actual_node, node) > LOCAL_DISTANCE) - pr_warn("[%lx-%lx] potential offnode page_structs\n", + pr_warn_once("[%lx-%lx] potential offnode page_structs\n", start, end - 1); } |
