Lines Matching refs:mreplace
3300 struct md_rdev *mrdev, *mreplace; in raid10_sync_request() local
3303 mreplace = mirror->replacement; in raid10_sync_request()
3308 if (mreplace && test_bit(Faulty, &mreplace->flags)) in raid10_sync_request()
3309 mreplace = NULL; in raid10_sync_request()
3311 if (!mrdev && !mreplace) in raid10_sync_request()
3333 mreplace == NULL && in raid10_sync_request()
3343 if (mreplace) in raid10_sync_request()
3344 atomic_inc(&mreplace->nr_pending); in raid10_sync_request()
3447 if (!mreplace) in raid10_sync_request()
3454 mreplace->data_offset; in raid10_sync_request()
3455 bio_set_dev(bio, mreplace->bdev); in raid10_sync_request()
3477 if (mreplace && in raid10_sync_request()
3479 mreplace, in raid10_sync_request()
3500 if (mreplace) in raid10_sync_request()
3501 rdev_dec_pending(mreplace, mddev); in raid10_sync_request()
3506 if (mreplace) in raid10_sync_request()
3507 rdev_dec_pending(mreplace, mddev); in raid10_sync_request()