Skip to content

Commit ad8b4b2

Browse files
rientjestorvalds
authored andcommitted
alpha, mm: set all online nodes in N_NORMAL_MEMORY
For alpha, N_NORMAL_MEMORY represents all nodes that have present memory since it does not support HIGHMEM. This patch sets the bit at the time the node is initialized. If N_NORMAL_MEMORY is not accurate, slub may encounter errors since it uses this nodemask to setup per-cache kmem_cache_node data structures. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0c91731 commit ad8b4b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/alpha/mm/numa.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ void __init paging_init(void)
313313
zones_size[ZONE_DMA] = dma_local_pfn;
314314
zones_size[ZONE_NORMAL] = (end_pfn - start_pfn) - dma_local_pfn;
315315
}
316+
node_set_state(nid, N_NORMAL_MEMORY);
316317
free_area_init_node(nid, zones_size, start_pfn, NULL);
317318
}
318319

0 commit comments

Comments
 (0)