]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/slab.h
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / mm / slab.h
index 4c3ac12dd64405478b1b5bd24b7f5ff4f479c981..6a427a74cca5511815e56fa5dd2d3d2eb8a373d3 100644 (file)
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -162,6 +162,15 @@ void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *s);
 ssize_t slabinfo_write(struct file *file, const char __user *buffer,
                       size_t count, loff_t *ppos);
 
+/*
+ * Generic implementation of bulk operations
+ * These are useful for situations in which the allocator cannot
+ * perform optimizations. In that case segments of the objecct listed
+ * may be allocated or freed using these operations.
+ */
+void __kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
+bool __kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
+
 #ifdef CONFIG_MEMCG_KMEM
 /*
  * Iterate over all memcg caches of the given root cache. The caller must hold