Searched refs:saved_raid_disk (Results 1 – 7 of 7) sorted by relevance
209 if (rdev->saved_raid_disk != mddev->raid_disks) in linear_add()212 rdev->raid_disk = rdev->saved_raid_disk; in linear_add()213 rdev->saved_raid_disk = -1; in linear_add()
1728 if (rdev->saved_raid_disk >= 0 && in raid1_add_disk()1729 rdev->saved_raid_disk >= first && in raid1_add_disk()1730 rdev->saved_raid_disk < conf->raid_disks && in raid1_add_disk()1731 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid1_add_disk()1732 first = last = rdev->saved_raid_disk; in raid1_add_disk()1748 if (rdev->saved_raid_disk < 0) in raid1_add_disk()3019 (disk->rdev->saved_raid_disk < 0)) in setup_conf()
2473 rdev->saved_raid_disk = rdev->raid_disk; in super_validate()2545 rdev->raid_disk = rdev->saved_raid_disk = -1; in analyse_superblocks()2676 rdev->saved_raid_disk = rdev->new_raid_disk = -1; in __reorder_raid_disk_indexes()2844 rdev->saved_raid_disk = -1; in rs_setup_reshape()3700 r->raid_disk = r->saved_raid_disk = i; in attempt_restore_of_faulty_devices()3707 r->raid_disk = r->saved_raid_disk = -1; in attempt_restore_of_faulty_devices()
1228 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate()1759 rdev->saved_raid_disk = role; in super_1_validate()1765 rdev->saved_raid_disk = -1; in super_1_validate()1843 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()2807 rdev->saved_raid_disk = rdev->raid_disk; in state_store()2858 rdev->saved_raid_disk >= 0) { in state_store()2974 rdev->saved_raid_disk = slot; in slot_store()2976 rdev->saved_raid_disk = -1; in slot_store()3415 rdev->saved_raid_disk = -1; in md_rdev_init()6377 rdev->saved_raid_disk = rdev->raid_disk; in add_new_disk()[all …]
1772 if (rdev->saved_raid_disk < 0 && !_enough(conf, 1, -1)) in raid10_add_disk()1781 if (rdev->saved_raid_disk >= first && in raid10_add_disk()1782 rdev->saved_raid_disk < conf->geo.raid_disks && in raid10_add_disk()1783 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()1784 mirror = rdev->saved_raid_disk; in raid10_add_disk()1815 if (rdev->saved_raid_disk != mirror) in raid10_add_disk()3759 disk->rdev->saved_raid_disk < 0) in raid10_run()3765 disk->replacement->saved_raid_disk < 0) { in raid10_run()
90 int saved_raid_disk; /* role that device used to have in the member
7018 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf()7678 if (rdev->saved_raid_disk < 0 && has_failed(conf)) in raid5_add_disk()7689 if (rdev->saved_raid_disk >= 0 && in raid5_add_disk()7690 rdev->saved_raid_disk >= first && in raid5_add_disk()7691 conf->disks[rdev->saved_raid_disk].rdev == NULL) in raid5_add_disk()7692 first = rdev->saved_raid_disk; in raid5_add_disk()7699 if (rdev->saved_raid_disk != disk) in raid5_add_disk()