diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2022-09-29 12:28:26 +0300 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2022-09-29 12:28:26 +0300 |
commit | af961f8059a42d1b9941dd8aa83420b25fd17e91 (patch) | |
tree | c672cc19e7d3f47b5eaedec57bea61f77ddbcf24 /include/linux/slab.h | |
parent | 0bdcef54a25b1990ab43cb58817731290b07dc50 (diff) | |
parent | 6edf2576a6cc46460c164831517a36064eb8109c (diff) | |
download | linux-af961f8059a42d1b9941dd8aa83420b25fd17e91.tar.xz |
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 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 9b592e611cb1..6dc495f76644 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -29,6 +29,8 @@ #define SLAB_RED_ZONE ((slab_flags_t __force)0x00000400U) /* DEBUG: Poison objects */ #define SLAB_POISON ((slab_flags_t __force)0x00000800U) +/* Indicate a kmalloc slab */ +#define SLAB_KMALLOC ((slab_flags_t __force)0x00001000U) /* Align objs on cache lines */ #define SLAB_HWCACHE_ALIGN ((slab_flags_t __force)0x00002000U) /* Use GFP_DMA memory */ |