• Home
  • Raw
  • Download

Lines Matching full:replacement

443 		rdev = conf->mirrors[dev].replacement;  in raid10_end_write_request()
454 /* Never record new bad blocks to replacement, in raid10_end_write_request()
752 rdev = rcu_dereference(conf->mirrors[disk].replacement); in read_balance()
757 * Read replacement first to prevent reading both rdev in read_balance()
758 * and replacement as NULL during replacement replace in read_balance()
1222 struct bio *bio, bool replacement, in raid10_write_one_disk() argument
1236 if (replacement) { in raid10_write_one_disk()
1237 rdev = conf->mirrors[devnum].replacement; in raid10_write_one_disk()
1239 /* Replacement just got moved to main 'rdev' */ in raid10_write_one_disk()
1247 if (replacement) in raid10_write_one_disk()
1257 if (!replacement && test_bit(FailFast, in raid10_write_one_disk()
1361 rrdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_write_request()
1363 * Read replacement first to prevent reading both rdev and in raid10_write_request()
1364 * replacement as NULL during replacement replace rdev. in raid10_write_request()
1457 rdev = conf->mirrors[d].replacement; in raid10_write_request()
1720 if (tmp->replacement in raid10_spare_active()
1721 && tmp->replacement->recovery_offset == MaxSector in raid10_spare_active()
1722 && !test_bit(Faulty, &tmp->replacement->flags) in raid10_spare_active()
1723 && !test_and_set_bit(In_sync, &tmp->replacement->flags)) { in raid10_spare_active()
1724 /* Replacement has just become active */ in raid10_spare_active()
1737 sysfs_notify_dirent_safe(tmp->replacement->sysfs_state); in raid10_spare_active()
1788 p->replacement != NULL) in raid10_add_disk()
1791 set_bit(Replacement, &rdev->flags); in raid10_add_disk()
1798 rcu_assign_pointer(p->replacement, rdev); in raid10_add_disk()
1836 else if (rdev == p->replacement) in raid10_remove_disk()
1837 rdevp = &p->replacement; in raid10_remove_disk()
1851 (!p->replacement || p->replacement == rdev) && in raid10_remove_disk()
1867 if (p->replacement) { in raid10_remove_disk()
1869 p->rdev = p->replacement; in raid10_remove_disk()
1870 clear_bit(Replacement, &p->replacement->flags); in raid10_remove_disk()
1874 p->replacement = NULL; in raid10_remove_disk()
1970 rdev = conf->mirrors[d].replacement; in end_sync_write()
2108 /* Now write out to any replacement devices in sync_request_write()
2122 md_sync_acct(conf->mirrors[d].replacement->bdev, in sync_request_write()
2261 atomic_inc(&conf->mirrors[d].replacement->nr_pending); in recovery_request_write()
2262 md_sync_acct(conf->mirrors[d].replacement->bdev, in recovery_request_write()
2647 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
2688 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
2799 if (conf->mirrors[i].replacement) in init_resync()
2986 rcu_dereference(conf->mirrors[i].replacement); in raid10_sync_request()
3061 mreplace = rcu_dereference(mirror->replacement); in raid10_sync_request()
3086 /* Unless we are doing a full sync, or a replacement in raid10_sync_request()
3204 /* and maybe write to replacement */ in raid10_sync_request()
3378 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_sync_request()
3385 /* Need to set up for writing to the replacement */ in raid10_sync_request()
3411 conf->mirrors[d].replacement, in raid10_sync_request()
3802 if (test_bit(Replacement, &rdev->flags)) { in raid10_run()
3803 if (disk->replacement) in raid10_run()
3805 disk->replacement = rdev; in raid10_run()
3863 if (!disk->rdev && disk->replacement) { in raid10_run()
3864 /* The replacement is all we have - use it */ in raid10_run()
3865 disk->rdev = disk->replacement; in raid10_run()
3866 disk->replacement = NULL; in raid10_run()
3867 clear_bit(Replacement, &disk->rdev->flags); in raid10_run()
3879 if (disk->replacement && in raid10_run()
3880 !test_bit(In_sync, &disk->replacement->flags) && in raid10_run()
3881 disk->replacement->saved_raid_disk < 0) { in raid10_run()
4604 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request()
4696 rdev = rcu_dereference(conf->mirrors[d].replacement); in reshape_request_write()
4834 rdev = conf->mirrors[d].replacement; in end_reshape_write()
4880 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_finish_reshape()