diff options
Diffstat (limited to 'include/linux/slab.h')
| -rw-r--r-- | include/linux/slab.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 24c5602bee99..2da8372519f5 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -62,6 +62,15 @@ | |||
| 62 | # define SLAB_DEBUG_OBJECTS 0x00000000UL | 62 | # define SLAB_DEBUG_OBJECTS 0x00000000UL |
| 63 | #endif | 63 | #endif |
| 64 | 64 | ||
| 65 | #define SLAB_NOLEAKTRACE 0x00800000UL /* Avoid kmemleak tracing */ | ||
| 66 | |||
| 67 | /* Don't track use of uninitialized memory */ | ||
| 68 | #ifdef CONFIG_KMEMCHECK | ||
| 69 | # define SLAB_NOTRACK 0x01000000UL | ||
| 70 | #else | ||
| 71 | # define SLAB_NOTRACK 0x00000000UL | ||
| 72 | #endif | ||
| 73 | |||
| 65 | /* The following flags affect the page allocator grouping pages by mobility */ | 74 | /* The following flags affect the page allocator grouping pages by mobility */ |
| 66 | #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */ | 75 | #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */ |
| 67 | #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ | 76 | #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ |
| @@ -317,4 +326,6 @@ static inline void *kzalloc_node(size_t size, gfp_t flags, int node) | |||
| 317 | return kmalloc_node(size, flags | __GFP_ZERO, node); | 326 | return kmalloc_node(size, flags | __GFP_ZERO, node); |
| 318 | } | 327 | } |
| 319 | 328 | ||
| 329 | void __init kmem_cache_init_late(void); | ||
| 330 | |||
| 320 | #endif /* _LINUX_SLAB_H */ | 331 | #endif /* _LINUX_SLAB_H */ |
