aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux.c
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2016-12-16 20:12:41 +0000
committerMatthew Wilcox <[email protected]>2017-02-13 21:09:36 +0000
commita3c7890790e742074bc9e5640b0fcf9c61a771a2 (patch)
tree6fecc34c15dc3a5ad04c80105575bde9393815e7 /tools/testing/radix-tree/linux.c
parentradix tree test suite: Depend on tools/include/asm files (diff)
downloadkernel-a3c7890790e742074bc9e5640b0fcf9c61a771a2.tar.gz
kernel-a3c7890790e742074bc9e5640b0fcf9c61a771a2.zip
radix tree test suite: Remove mempool
The radix tree hasn't used a mempool since the beginning of git history. Remove the userspace mempool implementation. Signed-off-by: Matthew Wilcox <[email protected]> Reviewed-by: Rehas Sachdeva <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
-rw-r--r--tools/testing/radix-tree/linux.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/testing/radix-tree/linux.c b/tools/testing/radix-tree/linux.c
index d31ea7c9abec..c27c11261c37 100644
--- a/tools/testing/radix-tree/linux.c
+++ b/tools/testing/radix-tree/linux.c
@@ -5,7 +5,6 @@
#include <unistd.h>
#include <assert.h>
-#include <linux/mempool.h>
#include <linux/poison.h>
#include <linux/slab.h>
#include <linux/radix-tree.h>
@@ -22,27 +21,6 @@ struct kmem_cache {
void (*ctor)(void *);
};
-void *mempool_alloc(mempool_t *pool, int gfp_mask)
-{
- return pool->alloc(gfp_mask, pool->data);
-}
-
-void mempool_free(void *element, mempool_t *pool)
-{
- pool->free(element, pool->data);
-}
-
-mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn,
- mempool_free_t *free_fn, void *pool_data)
-{
- mempool_t *ret = malloc(sizeof(*ret));
-
- ret->alloc = alloc_fn;
- ret->free = free_fn;
- ret->data = pool_data;
- return ret;
-}
-
void *kmem_cache_alloc(struct kmem_cache *cachep, int flags)
{
struct radix_tree_node *node;