diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2022-09-29 11:28:26 +0200 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2022-09-29 11:28:26 +0200 |
commit | af961f8059a42d1b9941dd8aa83420b25fd17e91 (patch) | |
tree | c672cc19e7d3f47b5eaedec57bea61f77ddbcf24 /mm/slab_common.c | |
parent | 0bdcef54a25b1990ab43cb58817731290b07dc50 (diff) | |
parent | 6edf2576a6cc46460c164831517a36064eb8109c (diff) | |
download | linux-af961f8059a42d1b9941dd8aa83420b25fd17e91.tar.gz linux-af961f8059a42d1b9941dd8aa83420b25fd17e91.tar.bz2 linux-af961f8059a42d1b9941dd8aa83420b25fd17e91.zip |
Merge branch 'slab/for-6.1/slub_debug_waste' into slab/for-next
A patch from Feng Tang that enhances the existing debugfs alloc_traces
file for kmalloc caches with information about how much space is wasted
by allocations that needs less space than the particular kmalloc cache
provides.
Diffstat (limited to 'mm/slab_common.c')
-rw-r--r-- | mm/slab_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index 46b2df8a7532..82c10b4d1203 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -661,7 +661,8 @@ struct kmem_cache *__init create_kmalloc_cache(const char *name, if (!s) panic("Out of memory when creating slab %s\n", name); - create_boot_cache(s, name, size, flags, useroffset, usersize); + create_boot_cache(s, name, size, flags | SLAB_KMALLOC, useroffset, + usersize); kasan_cache_create_kmalloc(s); list_add(&s->list, &slab_caches); s->refcount = 1; |