Lines Matching refs:pools
2769 struct dm_md_mempools *pools = kzalloc_node(sizeof(*pools), GFP_KERNEL, md->numa_node_id); in dm_alloc_md_mempools() local
2773 if (!pools) in dm_alloc_md_mempools()
2782 pools->io_pool = mempool_create_slab_pool(pool_size, _io_cache); in dm_alloc_md_mempools()
2783 if (!pools->io_pool) in dm_alloc_md_mempools()
2796 pools->bs = bioset_create(pool_size, front_pad, BIOSET_NEED_RESCUER); in dm_alloc_md_mempools()
2797 if (!pools->bs) in dm_alloc_md_mempools()
2800 if (integrity && bioset_integrity_create(pools->bs, pool_size)) in dm_alloc_md_mempools()
2803 return pools; in dm_alloc_md_mempools()
2806 dm_free_md_mempools(pools); in dm_alloc_md_mempools()
2811 void dm_free_md_mempools(struct dm_md_mempools *pools) in dm_free_md_mempools() argument
2813 if (!pools) in dm_free_md_mempools()
2816 mempool_destroy(pools->io_pool); in dm_free_md_mempools()
2818 if (pools->bs) in dm_free_md_mempools()
2819 bioset_free(pools->bs); in dm_free_md_mempools()
2821 kfree(pools); in dm_free_md_mempools()