Lines Matching refs:ec_bio
102 struct ec_bio { struct
724 struct ec_bio *ec_bio = container_of(bio, struct ec_bio, bio); in ec_block_endio() local
725 struct bch_stripe *v = &bkey_i_to_stripe(&ec_bio->buf->key)->v; in ec_block_endio()
726 struct bch_extent_ptr *ptr = &v->ptrs[ec_bio->idx]; in ec_block_endio()
727 struct bch_dev *ca = ec_bio->ca; in ec_block_endio()
737 clear_bit(ec_bio->idx, ec_bio->buf->valid); in ec_block_endio()
745 clear_bit(ec_bio->idx, ec_bio->buf->valid); in ec_block_endio()
748 bio_put(&ec_bio->bio); in ec_block_endio()
788 struct ec_bio *ec_bio; in ec_block_io() local
790 ec_bio = container_of(bio_alloc_bioset(ca->disk_sb.bdev, in ec_block_io()
795 struct ec_bio, bio); in ec_block_io()
797 ec_bio->ca = ca; in ec_block_io()
798 ec_bio->buf = buf; in ec_block_io()
799 ec_bio->idx = idx; in ec_block_io()
801 ec_bio->bio.bi_iter.bi_sector = ptr->offset + buf->offset + (offset >> 9); in ec_block_io()
802 ec_bio->bio.bi_end_io = ec_block_endio; in ec_block_io()
803 ec_bio->bio.bi_private = cl; in ec_block_io()
805 bch2_bio_map(&ec_bio->bio, buf->data[idx] + offset, b); in ec_block_io()
810 submit_bio(&ec_bio->bio); in ec_block_io()
2503 return bioset_init(&c->ec_bioset, 1, offsetof(struct ec_bio, bio), in bch2_fs_ec_init()