Lines Matching refs:bs
25 static void __bio_integrity_free(struct bio_set *bs, in __bio_integrity_free() argument
28 if (bs && mempool_initialized(&bs->bio_integrity_pool)) { in __bio_integrity_free()
30 bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, in __bio_integrity_free()
32 mempool_free(bip, &bs->bio_integrity_pool); in __bio_integrity_free()
53 struct bio_set *bs = bio->bi_pool; in bio_integrity_alloc() local
59 if (!bs || !mempool_initialized(&bs->bio_integrity_pool)) { in bio_integrity_alloc()
63 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc()
74 bip->bip_vec = bvec_alloc(&bs->bvec_integrity_pool, in bio_integrity_alloc()
89 __bio_integrity_free(bs, bip); in bio_integrity_alloc()
104 struct bio_set *bs = bio->bi_pool; in bio_integrity_free() local
109 __bio_integrity_free(bs, bip); in bio_integrity_free()
425 int bioset_integrity_create(struct bio_set *bs, int pool_size) in bioset_integrity_create() argument
427 if (mempool_initialized(&bs->bio_integrity_pool)) in bioset_integrity_create()
430 if (mempool_init_slab_pool(&bs->bio_integrity_pool, in bioset_integrity_create()
434 if (biovec_init_pool(&bs->bvec_integrity_pool, pool_size)) { in bioset_integrity_create()
435 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_create()
443 void bioset_integrity_free(struct bio_set *bs) in bioset_integrity_free() argument
445 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_free()
446 mempool_exit(&bs->bvec_integrity_pool); in bioset_integrity_free()