Lines Matching refs:mreplace
3428 struct md_rdev *mrdev, *mreplace; in raid10_sync_request() local
3432 mreplace = rcu_dereference(mirror->replacement); in raid10_sync_request()
3438 if (mreplace != NULL && in raid10_sync_request()
3439 !test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3458 if (mreplace && test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3459 mreplace = NULL; in raid10_sync_request()
3469 mreplace == NULL && in raid10_sync_request()
3479 if (mreplace) in raid10_sync_request()
3480 atomic_inc(&mreplace->nr_pending); in raid10_sync_request()
3593 mreplace->data_offset; in raid10_sync_request()
3594 bio_set_dev(bio, mreplace->bdev); in raid10_sync_request()
3617 if (mreplace && in raid10_sync_request()
3619 mreplace, in raid10_sync_request()
3637 if (mreplace) in raid10_sync_request()
3638 rdev_dec_pending(mreplace, mddev); in raid10_sync_request()
3642 if (mreplace) in raid10_sync_request()
3643 rdev_dec_pending(mreplace, mddev); in raid10_sync_request()