mm/slab_common: kmalloc_node: pass large requests to page allocator
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Wed, 17 Aug 2022 10:18:17 +0000 (19:18 +0900)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 24 Aug 2022 14:11:41 +0000 (16:11 +0200)
commitbf37d791022ecfb1279ac88c5448a53f1ae40a59
tree99b826afce6cbfd427a9c4f3b4e4bc71bcd081b0
parenta0c3b940023eef3fa005b2bc37d9312712331dcb
mm/slab_common: kmalloc_node: pass large requests to page allocator

Now that kmalloc_large_node() is in common code, pass large requests
to page allocator in kmalloc_node() using kmalloc_large_node().

One problem is that currently there is no tracepoint in
kmalloc_large_node(). Instead of simply putting tracepoint in it,
use kmalloc_large_node{,_notrace} depending on its caller to show
useful address for both inlined kmalloc_node() and
__kmalloc_node_track_caller() when large objects are allocated.

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/slab.h
mm/slab.h
mm/slab_common.c
mm/slub.c