Home
last modified time | relevance | path

Searched refs:saved_raid_disk (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/md/
Dmd-linear.c169 if (rdev->saved_raid_disk != mddev->raid_disks) in linear_add()
172 rdev->raid_disk = rdev->saved_raid_disk; in linear_add()
173 rdev->saved_raid_disk = -1; in linear_add()
Draid1.c1791 if (rdev->saved_raid_disk >= 0 && in raid1_add_disk()
1792 rdev->saved_raid_disk >= first && in raid1_add_disk()
1793 rdev->saved_raid_disk < conf->raid_disks && in raid1_add_disk()
1794 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid1_add_disk()
1795 first = last = rdev->saved_raid_disk; in raid1_add_disk()
1810 if (rdev->saved_raid_disk < 0) in raid1_add_disk()
3078 (disk->rdev->saved_raid_disk < 0)) in setup_conf()
Ddm-raid.c2487 rdev->saved_raid_disk = rdev->raid_disk; in super_validate()
2559 rdev->raid_disk = rdev->saved_raid_disk = -1; in analyse_superblocks()
2697 rdev->saved_raid_disk = rdev->new_raid_disk = -1; in __reorder_raid_disk_indexes()
2883 rdev->saved_raid_disk = -1; in rs_setup_reshape()
3848 r->raid_disk = r->saved_raid_disk = i; in attempt_restore_of_faulty_devices()
3855 r->raid_disk = r->saved_raid_disk = -1; in attempt_restore_of_faulty_devices()
Draid10.c2157 if (rdev->saved_raid_disk < 0 && !_enough(conf, 1, -1)) in raid10_add_disk()
2166 if (rdev->saved_raid_disk >= first && in raid10_add_disk()
2167 rdev->saved_raid_disk < conf->geo.raid_disks && in raid10_add_disk()
2168 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()
2169 mirror = rdev->saved_raid_disk; in raid10_add_disk()
2191 if (rdev->saved_raid_disk != mirror) in raid10_add_disk()
4264 disk->rdev->saved_raid_disk < 0) in raid10_run()
4270 disk->replacement->saved_raid_disk < 0) { in raid10_run()
Dmd.c1360 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate()
1907 rdev->saved_raid_disk = role; in super_1_validate()
1913 rdev->saved_raid_disk = -1; in super_1_validate()
1991 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()
2981 rdev->saved_raid_disk = rdev->raid_disk; in state_store()
3032 rdev->saved_raid_disk >= 0) { in state_store()
3153 rdev->saved_raid_disk = slot; in slot_store()
3155 rdev->saved_raid_disk = -1; in slot_store()
3599 rdev->saved_raid_disk = -1; in md_rdev_init()
6797 rdev->saved_raid_disk = rdev->raid_disk; in md_add_new_disk()
[all …]
Dmd.h93 int saved_raid_disk; /* role that device used to have in the member
Draid5.c7664 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf()
8345 if (rdev->saved_raid_disk < 0 && has_failed(conf)) in raid5_add_disk()
8356 if (rdev->saved_raid_disk >= first && in raid5_add_disk()
8357 rdev->saved_raid_disk <= last && in raid5_add_disk()
8358 conf->disks[rdev->saved_raid_disk].rdev == NULL) in raid5_add_disk()
8359 first = rdev->saved_raid_disk; in raid5_add_disk()
8366 if (rdev->saved_raid_disk != disk) in raid5_add_disk()