/* create memory pools for biovec's in a bio_set. use the global biovec slabs created for general use.  */
static int biovec_create_pools(struct bio_set *bs, int pool_entries)
/* create memory pools for biovec's in a bio_set. use the global biovec slabs created for general use.  */
static int biovec_create_pools(struct bio_set *bs, int pool_entries)
{
	struct biovec_slab *bp = bvec_slabs + BIOVEC_MAX_IDX;
	bs->bvec_pool = mempool_create_slab_pool(pool_entries, bp->slab);
	if (!bs->bvec_pool)
		return -ENOMEM;
	return 0;
}