Skip to content

Commit 6b6efe2

Browse files
JSYoo5Btehcaster
authored andcommitted
mm/slub: remove meaningless node check in ___slab_alloc()
node_match() with node=NUMA_NO_NODE always returns 1. Duplicate check by goto statement is meaningless. Remove it. Signed-off-by: JaeSang Yoo <jsyoo5b@gmail.com> Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/20220409144239.2649257-1-jsyoo5b@gmail.com
1 parent 27c08f7 commit 6b6efe2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mm/slub.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,6 @@ static void *___slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
29102910
*/
29112911
if (!node_isset(node, slab_nodes)) {
29122912
node = NUMA_NO_NODE;
2913-
goto redo;
29142913
} else {
29152914
stat(s, ALLOC_NODE_MISMATCH);
29162915
goto deactivate_slab;

0 commit comments

Comments
 (0)