slub: fix bad scope checking
Subsystems (2)
PATCH 1/1 slub: fix bad scope checking
Function init_kmem_cache_nodes is incorrect when checking upper limitation of kmalloc_caches.
The patch against latest tip/master fixes it.
From: Zhang, Yanmin <[email protected]>
---
mm/slub.c +1 -1
@@ -2153,7 +2153,7 @@ static int init_kmem_cache_nodes(structint local_node;if (slab_state >=UP && (s < kmalloc_caches || - s > kmalloc_caches +KMALLOC_CACHES )) + s >= kmalloc_caches +KMALLOC_CACHES )) local_node =page_to_nid (virt_to_page (s));else local_node =0 ;
Quoted 2 lines · Yanmin
Function
init_kmem_cache_nodesis incorrect when checking upper limitation ofkmalloc_caches.
True.
Pekka Enberg
AppliedQuoted 8 lines · Christoph Lameter
Quoted 2 lines · Yanmin
Function
init_kmem_cache_nodesis incorrect when checking upper limitation ofkmalloc_caches.True.
Applied, thanks!