Lines Matching refs:rbi
1159 struct bio *bi, *rbi; in ops_run_io() local
1183 rbi = &dev->rreq; /* For writing to replacement */ in ops_run_io()
1310 bio_init(rbi, rrdev->bdev, &dev->rvec, 1, op | op_flags); in ops_run_io()
1312 rbi->bi_end_io = raid5_end_write_request; in ops_run_io()
1313 rbi->bi_private = sh; in ops_run_io()
1318 rbi->bi_opf, i); in ops_run_io()
1323 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1326 rbi->bi_iter.bi_sector = (sh->sector in ops_run_io()
1331 rbi->bi_vcnt = 1; in ops_run_io()
1332 rbi->bi_io_vec[0].bv_len = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1333 rbi->bi_io_vec[0].bv_offset = sh->dev[i].offset; in ops_run_io()
1334 rbi->bi_iter.bi_size = RAID5_STRIPE_SIZE(conf); in ops_run_io()
1340 rbi->bi_vcnt = 0; in ops_run_io()
1341 mddev_trace_remap(conf->mddev, rbi, sh->dev[i].sector); in ops_run_io()
1343 bio_list_add(&pending_bios, rbi); in ops_run_io()
1345 submit_bio_noacct(rbi); in ops_run_io()
1452 struct bio *rbi, *rbi2; in ops_complete_biofill() local
1455 rbi = dev->read; in ops_complete_biofill()
1457 while (rbi && rbi->bi_iter.bi_sector < in ops_complete_biofill()
1459 rbi2 = r5_next_bio(conf, rbi, dev->sector); in ops_complete_biofill()
1460 bio_endio(rbi); in ops_complete_biofill()
1461 rbi = rbi2; in ops_complete_biofill()
1485 struct bio *rbi; in ops_run_biofill() local
1487 dev->read = rbi = dev->toread; in ops_run_biofill()
1490 while (rbi && rbi->bi_iter.bi_sector < in ops_run_biofill()
1492 tx = async_copy_data(0, rbi, &dev->page, in ops_run_biofill()
1495 rbi = r5_next_bio(conf, rbi, dev->sector); in ops_run_biofill()