Lines Matching refs:bs
34 struct bio_set *bs = bio->bi_pool; in bio_integrity_free() local
36 if (bs && mempool_initialized(&bs->bio_integrity_pool)) { in bio_integrity_free()
38 bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, in bio_integrity_free()
40 mempool_free(bip, &bs->bio_integrity_pool); in bio_integrity_free()
63 struct bio_set *bs = bio->bi_pool; in bio_integrity_alloc() local
69 if (!bs || !mempool_initialized(&bs->bio_integrity_pool)) { in bio_integrity_alloc()
73 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc()
85 bip->bip_vec = bvec_alloc(&bs->bvec_integrity_pool, in bio_integrity_alloc()
99 if (bs && mempool_initialized(&bs->bio_integrity_pool)) in bio_integrity_alloc()
100 mempool_free(bip, &bs->bio_integrity_pool); in bio_integrity_alloc()
570 int bioset_integrity_create(struct bio_set *bs, int pool_size) in bioset_integrity_create() argument
572 if (mempool_initialized(&bs->bio_integrity_pool)) in bioset_integrity_create()
575 if (mempool_init_slab_pool(&bs->bio_integrity_pool, in bioset_integrity_create()
579 if (biovec_init_pool(&bs->bvec_integrity_pool, pool_size)) { in bioset_integrity_create()
580 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_create()
588 void bioset_integrity_free(struct bio_set *bs) in bioset_integrity_free() argument
590 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_free()
591 mempool_exit(&bs->bvec_integrity_pool); in bioset_integrity_free()