Lines Matching refs:mbio
374 struct bio *mbio = r1_bio->master_bio; in raid1_end_write_request() local
376 (unsigned long long) mbio->bi_sector, in raid1_end_write_request()
377 (unsigned long long) mbio->bi_sector + in raid1_end_write_request()
378 (mbio->bi_size >> 9) - 1); in raid1_end_write_request()
379 bio_endio(mbio, 0); in raid1_end_write_request()
883 struct bio *mbio; in make_request() local
887 mbio = bio_clone_mddev(bio, GFP_NOIO, mddev); in make_request()
888 r1_bio->bios[i] = mbio; in make_request()
890 mbio->bi_sector = r1_bio->sector + conf->mirrors[i].rdev->data_offset; in make_request()
891 mbio->bi_bdev = conf->mirrors[i].rdev->bdev; in make_request()
892 mbio->bi_end_io = raid1_end_write_request; in make_request()
893 mbio->bi_rw = WRITE | do_flush_fua | do_sync; in make_request()
894 mbio->bi_private = r1_bio; in make_request()
907 __bio_for_each_segment(bvec, mbio, j, 0) in make_request()
915 bio_list_add(&conf->pending_bio_list, mbio); in make_request()