Lines Matching refs:pools
2839 struct dm_md_mempools *pools = kzalloc_node(sizeof(*pools), GFP_KERNEL, md->numa_node_id); in dm_alloc_md_mempools() local
2844 if (!pools) in dm_alloc_md_mempools()
2853 ret = bioset_init(&pools->io_bs, pool_size, io_front_pad, 0); in dm_alloc_md_mempools()
2856 if (integrity && bioset_integrity_create(&pools->io_bs, pool_size)) in dm_alloc_md_mempools()
2868 ret = bioset_init(&pools->bs, pool_size, front_pad, 0); in dm_alloc_md_mempools()
2872 if (integrity && bioset_integrity_create(&pools->bs, pool_size)) in dm_alloc_md_mempools()
2875 return pools; in dm_alloc_md_mempools()
2878 dm_free_md_mempools(pools); in dm_alloc_md_mempools()
2883 void dm_free_md_mempools(struct dm_md_mempools *pools) in dm_free_md_mempools() argument
2885 if (!pools) in dm_free_md_mempools()
2888 bioset_exit(&pools->bs); in dm_free_md_mempools()
2889 bioset_exit(&pools->io_bs); in dm_free_md_mempools()
2891 kfree(pools); in dm_free_md_mempools()