Lines Matching refs:replacement

444 		rdev = conf->mirrors[dev].replacement;  in raid10_end_write_request()
753 rdev = rcu_dereference(conf->mirrors[disk].replacement); in read_balance()
1214 struct bio *bio, bool replacement, in raid10_write_one_disk() argument
1228 if (replacement) { in raid10_write_one_disk()
1229 rdev = conf->mirrors[devnum].replacement; in raid10_write_one_disk()
1239 if (replacement) in raid10_write_one_disk()
1249 if (!replacement && test_bit(FailFast, in raid10_write_one_disk()
1292 conf->mirrors[i].replacement); in wait_blocked_dev()
1418 conf->mirrors[d].replacement); in raid10_write_request()
1565 rdev = conf->mirrors[dev].replacement; in raid10_end_discard_request()
1724 conf->mirrors[disk].replacement); in raid10_handle_discard()
1798 struct md_rdev *rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard()
2034 if (tmp->replacement in raid10_spare_active()
2035 && tmp->replacement->recovery_offset == MaxSector in raid10_spare_active()
2036 && !test_bit(Faulty, &tmp->replacement->flags) in raid10_spare_active()
2037 && !test_and_set_bit(In_sync, &tmp->replacement->flags)) { in raid10_spare_active()
2051 sysfs_notify_dirent_safe(tmp->replacement->sysfs_state); in raid10_spare_active()
2102 p->replacement != NULL) in raid10_add_disk()
2112 rcu_assign_pointer(p->replacement, rdev); in raid10_add_disk()
2147 else if (rdev == p->replacement) in raid10_remove_disk()
2148 rdevp = &p->replacement; in raid10_remove_disk()
2162 (!p->replacement || p->replacement == rdev) && in raid10_remove_disk()
2178 if (p->replacement) { in raid10_remove_disk()
2180 p->rdev = p->replacement; in raid10_remove_disk()
2181 clear_bit(Replacement, &p->replacement->flags); in raid10_remove_disk()
2185 p->replacement = NULL; in raid10_remove_disk()
2281 rdev = conf->mirrors[d].replacement; in end_sync_write()
2433 md_sync_acct(conf->mirrors[d].replacement->bdev, in sync_request_write()
2569 atomic_inc(&conf->mirrors[d].replacement->nr_pending); in recovery_request_write()
2570 md_sync_acct(conf->mirrors[d].replacement->bdev, in recovery_request_write()
2955 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
2996 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
3107 if (conf->mirrors[i].replacement) in init_resync()
3294 rcu_dereference(conf->mirrors[i].replacement); in raid10_sync_request()
3370 mreplace = rcu_dereference(mirror->replacement); in raid10_sync_request()
3690 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_sync_request()
3723 conf->mirrors[d].replacement, in raid10_sync_request()
4107 if (disk->replacement) in raid10_run()
4109 disk->replacement = rdev; in raid10_run()
4167 if (!disk->rdev && disk->replacement) { in raid10_run()
4169 disk->rdev = disk->replacement; in raid10_run()
4170 disk->replacement = NULL; in raid10_run()
4183 if (disk->replacement && in raid10_run()
4184 !test_bit(In_sync, &disk->replacement->flags) && in raid10_run()
4185 disk->replacement->saved_raid_disk < 0) { in raid10_run()
4915 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request()
5007 rdev = rcu_dereference(conf->mirrors[d].replacement); in reshape_request_write()
5145 rdev = conf->mirrors[d].replacement; in end_reshape_write()
5191 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_finish_reshape()