diff options
author | 2022-08-17 19:18:20 +0900 | |
---|---|---|
committer | 2022-08-24 16:11:41 +0200 | |
commit | ed4cd17eb26d7f0c6a762608a3f30870929fbcdd (patch) | |
tree | ba147171e3c437de931f66e54559bcba93f8bf7f /mm/slab.h | |
parent | mm/slab: kmalloc: pass requests larger than order-1 page to page allocator (diff) | |
download | linux-ed4cd17eb26d7f0c6a762608a3f30870929fbcdd.tar.gz linux-ed4cd17eb26d7f0c6a762608a3f30870929fbcdd.tar.bz2 linux-ed4cd17eb26d7f0c6a762608a3f30870929fbcdd.zip |
mm/sl[au]b: introduce common alloc/free functions without tracepoint
To unify kmalloc functions in later patch, introduce common alloc/free
functions that does not have tracepoint.
Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h index 9808d537f6ba..8eefeed95407 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -273,6 +273,11 @@ void create_kmalloc_caches(slab_flags_t); /* Find the kmalloc slab corresponding for a certain size */ struct kmem_cache *kmalloc_slab(size_t, gfp_t); + +void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags, + int node, size_t orig_size, + unsigned long caller); +void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller); #endif void *kmalloc_large_node_notrace(size_t size, gfp_t flags, int node); |