projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
slab: Common definition for the array of kmalloc caches
[firefly-linux-kernel-4.4.55.git]
/
include
/
linux
/
slab.h
diff --git
a/include/linux/slab.h
b/include/linux/slab.h
index c01780540054bb00c9a2eee68ba4a223990c947c..f2327a898a85c2a0752b4f2a5a91a05cf2f4ebb4 100644
(file)
--- a/
include/linux/slab.h
+++ b/
include/linux/slab.h
@@
-206,6
+206,11
@@
struct kmem_cache {
#define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW)
#endif
#define KMALLOC_MIN_SIZE (1 << KMALLOC_SHIFT_LOW)
#endif
+extern struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
+#ifdef CONFIG_ZONE_DMA
+extern struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
+#endif
+
/*
* Figure out which kmalloc slab an allocation of a certain size
* belongs to.
/*
* Figure out which kmalloc slab an allocation of a certain size
* belongs to.