[PATCH 06/22] mm: base hash distribution on common memory nodes
From: Gregory Price (Meta)
Date: Sat Nov 14 2026 - 02:11:07 EST
hashdist is useful when large kernel hash tables can be allocated across
multiple NUMA nodes. The tables come from ordinary allocations, which
only N_MEMORY_COMMON nodes serve.
Count N_MEMORY_COMMON nodes when applying the single-node optimization.
All memory is common as of now, so behavior is unchanged.
Signed-off-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>
---
mm/mm_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/mm_init.c b/mm/mm_init.c
index b4c4dba93652d..0c076bf5bf380 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -685,7 +685,7 @@ __setup("hashdist=", set_hashdist);
static inline void fixup_hashdist(void)
{
- if (num_node_state(N_MEMORY) == 1)
+ if (num_node_state(N_MEMORY_COMMON) == 1)
hashdist = false;
}
#else
--
2.53.1-Meta