Thread (26 messages) flat view 26 messages, 4 authors, 2018-07-31

Re: [PATCH v3 2/7] mm, slab/slub: introduce kmalloc-reclaimable caches

From: Christopher Lameter <hidden>
Date: 2018-07-30 15:41:32
Also in: linux-mm, lkml

On Wed, 18 Jul 2018, Vlastimil Babka wrote:
quoted hunk ↗ jump to hunk
index 4299c59353a1..d89e934e0d8b 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -296,11 +296,12 @@ static inline void __check_heap_object(const void *ptr, unsigned long n,
                                (KMALLOC_MIN_SIZE) : 16)

 #define KMALLOC_NORMAL	0
+#define KMALLOC_RECLAIM	1
 #ifdef CONFIG_ZONE_DMA
-#define KMALLOC_DMA	1
-#define KMALLOC_TYPES	2
+#define KMALLOC_DMA	2
+#define KMALLOC_TYPES	3
 #else
-#define KMALLOC_TYPES	1
+#define KMALLOC_TYPES	2
 #endif
I like enums....

Acked-by: Christoph Lameter <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help