Lines Matching refs:bio
122 struct bio *bio, struct btree_node *bn, u64 offset)
126 bio_reset(bio, ca->disk_sb.bdev, REQ_OP_READ);
127 bio->bi_iter.bi_sector = offset;
128 bch2_bio_map(bio, bn, PAGE_SIZE);
130 submit_bio_wait(bio);
131 if (bch2_dev_io_err_on(bio->bi_status, ca, BCH_MEMBER_ERROR_read,
133 offset, bch2_blk_status_to_str(bio->bi_status)))
189 struct bio *bio = bio_alloc(NULL, 1, 0, GFP_KERNEL);
192 if (!buf || !bio) {
193 bch_err(c, "read_btree_nodes_worker: error allocating bio/buf");
217 try_read_btree_node(w->f, ca, bio, buf, sector);
220 bio_put(bio);