mm/sl[aou]b: Use "kmem_cache" name for slab cache with kmem_cache struct
[firefly-linux-kernel-4.4.55.git] / mm / slab.h
index f9a9815cdc821fe47249e8da9559e1253155717a..6724aa6f662f7880233d19dc9070ea2abf1cd09c 100644 (file)
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -23,7 +23,20 @@ enum slab_state {
 
 extern enum slab_state slab_state;
 
+/* The slab cache mutex protects the management structures during changes */
+extern struct mutex slab_mutex;
+
+/* The list of all slab caches on the system */
+extern struct list_head slab_caches;
+
+/* The slab cache that manages slab cache information */
+extern struct kmem_cache *kmem_cache;
+
+/* Functions provided by the slab allocators */
 struct kmem_cache *__kmem_cache_create(const char *name, size_t size,
        size_t align, unsigned long flags, void (*ctor)(void *));
 
+int __kmem_cache_shutdown(struct kmem_cache *);
+void __kmem_cache_destroy(struct kmem_cache *);
+
 #endif