diff options
-rw-r--r-- | include/linux/slab.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index f62caaad94e0..6d03c954f641 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
@@ -29,6 +29,13 @@ | |||
29 | #define SLAB_MEM_SPREAD 0x00100000UL /* Spread some memory over cpuset */ | 29 | #define SLAB_MEM_SPREAD 0x00100000UL /* Spread some memory over cpuset */ |
30 | #define SLAB_TRACE 0x00200000UL /* Trace allocations and frees */ | 30 | #define SLAB_TRACE 0x00200000UL /* Trace allocations and frees */ |
31 | 31 | ||
32 | /* Flag to prevent checks on free */ | ||
33 | #ifdef CONFIG_DEBUG_OBJECTS | ||
34 | # define SLAB_DEBUG_OBJECTS 0x00400000UL | ||
35 | #else | ||
36 | # define SLAB_DEBUG_OBJECTS 0x00000000UL | ||
37 | #endif | ||
38 | |||
32 | /* The following flags affect the page allocator grouping pages by mobility */ | 39 | /* The following flags affect the page allocator grouping pages by mobility */ |
33 | #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */ | 40 | #define SLAB_RECLAIM_ACCOUNT 0x00020000UL /* Objects are reclaimable */ |
34 | #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ | 41 | #define SLAB_TEMPORARY SLAB_RECLAIM_ACCOUNT /* Objects are short-lived */ |