Searched refs:saved_raid_disk (Results 1 – 7 of 7) sorted by relevance
178 if (rdev->saved_raid_disk != mddev->raid_disks) in linear_add()181 rdev->raid_disk = rdev->saved_raid_disk; in linear_add()182 rdev->saved_raid_disk = -1; in linear_add()
1747 if (rdev->saved_raid_disk >= 0 && in raid1_add_disk()1748 rdev->saved_raid_disk >= first && in raid1_add_disk()1749 rdev->saved_raid_disk < conf->raid_disks && in raid1_add_disk()1750 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid1_add_disk()1751 first = last = rdev->saved_raid_disk; in raid1_add_disk()1766 if (rdev->saved_raid_disk < 0) in raid1_add_disk()3035 (disk->rdev->saved_raid_disk < 0)) in setup_conf()
2490 rdev->saved_raid_disk = rdev->raid_disk; in super_validate()2562 rdev->raid_disk = rdev->saved_raid_disk = -1; in analyse_superblocks()2700 rdev->saved_raid_disk = rdev->new_raid_disk = -1; in __reorder_raid_disk_indexes()2886 rdev->saved_raid_disk = -1; in rs_setup_reshape()3825 r->raid_disk = r->saved_raid_disk = i; in attempt_restore_of_faulty_devices()3832 r->raid_disk = r->saved_raid_disk = -1; in attempt_restore_of_faulty_devices()
1767 if (rdev->saved_raid_disk < 0 && !_enough(conf, 1, -1)) in raid10_add_disk()1776 if (rdev->saved_raid_disk >= first && in raid10_add_disk()1777 rdev->saved_raid_disk < conf->geo.raid_disks && in raid10_add_disk()1778 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()1779 mirror = rdev->saved_raid_disk; in raid10_add_disk()1810 if (rdev->saved_raid_disk != mirror) in raid10_add_disk()3875 disk->rdev->saved_raid_disk < 0) in raid10_run()3881 disk->replacement->saved_raid_disk < 0) { in raid10_run()
1430 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate()2012 rdev->saved_raid_disk = role; in super_1_validate()2018 rdev->saved_raid_disk = -1; in super_1_validate()2096 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()3116 rdev->saved_raid_disk = rdev->raid_disk; in state_store()3167 rdev->saved_raid_disk >= 0) { in state_store()3288 rdev->saved_raid_disk = slot; in slot_store()3290 rdev->saved_raid_disk = -1; in slot_store()3728 rdev->saved_raid_disk = -1; in md_rdev_init()6851 rdev->saved_raid_disk = rdev->raid_disk; in md_add_new_disk()[all …]
93 int saved_raid_disk; /* role that device used to have in the member
7324 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf()7994 if (rdev->saved_raid_disk < 0 && has_failed(conf)) in raid5_add_disk()8005 if (rdev->saved_raid_disk >= 0 && in raid5_add_disk()8006 rdev->saved_raid_disk >= first && in raid5_add_disk()8007 rdev->saved_raid_disk <= last && in raid5_add_disk()8008 conf->disks[rdev->saved_raid_disk].rdev == NULL) in raid5_add_disk()8009 first = rdev->saved_raid_disk; in raid5_add_disk()8016 if (rdev->saved_raid_disk != disk) in raid5_add_disk()