Home
last modified time | relevance | path

Searched refs:mbio (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/md/
Draid1.c539 struct bio *mbio = r1_bio->master_bio; in raid1_end_write_request() local
542 (unsigned long long) mbio->bi_iter.bi_sector, in raid1_end_write_request()
543 (unsigned long long) bio_end_sector(mbio) - 1); in raid1_end_write_request()
1594 struct bio *mbio = NULL; in raid1_write_request() local
1621 mbio = bio_alloc_clone(rdev->bdev, in raid1_write_request()
1629 mbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO, in raid1_write_request()
1636 r1_bio->bios[i] = mbio; in raid1_write_request()
1638 mbio->bi_iter.bi_sector = (r1_bio->sector + rdev->data_offset); in raid1_write_request()
1639 mbio->bi_end_io = raid1_end_write_request; in raid1_write_request()
1640 mbio->bi_opf = bio_op(bio) | (bio->bi_opf & (REQ_SYNC | REQ_FUA)); in raid1_write_request()
[all …]
Draid10.c1252 struct bio *mbio; in raid10_write_one_disk() local
1257 mbio = bio_alloc_clone(rdev->bdev, bio, GFP_NOIO, &mddev->bio_set); in raid10_write_one_disk()
1259 r10_bio->devs[n_copy].repl_bio = mbio; in raid10_write_one_disk()
1261 r10_bio->devs[n_copy].bio = mbio; in raid10_write_one_disk()
1263 mbio->bi_iter.bi_sector = (r10_bio->devs[n_copy].addr + in raid10_write_one_disk()
1265 mbio->bi_end_io = raid10_end_write_request; in raid10_write_one_disk()
1266 mbio->bi_opf = op | do_sync | do_fua; in raid10_write_one_disk()
1270 mbio->bi_opf |= MD_FAILFAST; in raid10_write_one_disk()
1271 mbio->bi_private = r10_bio; in raid10_write_one_disk()
1272 mddev_trace_remap(mddev, mbio, r10_bio->sector); in raid10_write_one_disk()
[all …]