]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Limit warning message in vmemmap_verify() to once
authorMa Wupeng <mawupeng1@huawei.com>
Tue, 14 Jun 2022 09:21:54 +0000 (17:21 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 15 Jun 2022 10:14:08 +0000 (12:14 +0200)
commitca3353a79f54b6827ea0f1b23d1cb7be01e5d605
tree508f1c7330482a3660b417330bf7b53f249ce342
parent1b3a166d41f27e7338e2a2a3dae42d658539e731
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 <mawupeng1@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20220614092156.1972846-4-mawupeng1@huawei.com
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
mm/sparse-vmemmap.c