Lines Matching refs:mempool
97 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc()
182 void btree_init_mempool(struct btree_head *head, mempool_t *mempool) in btree_init_mempool() argument
185 head->mempool = mempool; in btree_init_mempool()
192 head->mempool = mempool_create(0, btree_alloc, btree_free, NULL); in btree_init()
193 if (!head->mempool) in btree_init()
201 mempool_free(head->node, head->mempool); in btree_destroy()
202 mempool_destroy(head->mempool); in btree_destroy()
203 head->mempool = NULL; in btree_destroy()
441 mempool_free(node, head->mempool); in btree_shrink()
476 mempool_free(new, head->mempool); in btree_insert_level()
533 mempool_free(right, head->mempool); in merge()
548 mempool_free(child, head->mempool); in rebalance()
694 mempool_free(node, head->mempool); in __btree_for_each()