Searched refs:wbio (Results 1 – 2 of 2) sorted by relevance
1251 struct bio *bio, *wbio; in sync_request_write() local1438 wbio = r1_bio->bios[i]; in sync_request_write()1439 if (wbio->bi_end_io == NULL || in sync_request_write()1440 (wbio->bi_end_io == end_sync_read && in sync_request_write()1445 wbio->bi_rw = WRITE; in sync_request_write()1446 wbio->bi_end_io = end_sync_write; in sync_request_write()1448 md_sync_acct(conf->mirrors[i].rdev->bdev, wbio->bi_size >> 9); in sync_request_write()1450 generic_make_request(wbio); in sync_request_write()
1403 struct bio *bio, *wbio; in recovery_request_write() local1410 wbio = r10_bio->devs[1].bio; in recovery_request_write()1411 for (i=0; i < wbio->bi_vcnt; i++) { in recovery_request_write()1413 bio->bi_io_vec[i].bv_page = wbio->bi_io_vec[i].bv_page; in recovery_request_write()1414 wbio->bi_io_vec[i].bv_page = p; in recovery_request_write()1419 md_sync_acct(conf->mirrors[d].rdev->bdev, wbio->bi_size >> 9); in recovery_request_write()1421 generic_make_request(wbio); in recovery_request_write()1423 bio_endio(wbio, -EIO); in recovery_request_write()