Home
last modified time | relevance | path

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

/Linux-v6.1/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.c1803 if (rdev->saved_raid_disk >= 0 && in raid1_add_disk()
1804 rdev->saved_raid_disk >= first && in raid1_add_disk()
1805 rdev->saved_raid_disk < conf->raid_disks && in raid1_add_disk()
1806 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid1_add_disk()
1807 first = last = rdev->saved_raid_disk; in raid1_add_disk()
1822 if (rdev->saved_raid_disk < 0) in raid1_add_disk()
3081 (disk->rdev->saved_raid_disk < 0)) in setup_conf()
Ddm-raid.c2490 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()
3854 r->raid_disk = r->saved_raid_disk = i; in attempt_restore_of_faulty_devices()
3861 r->raid_disk = r->saved_raid_disk = -1; in attempt_restore_of_faulty_devices()
Dmd.c1367 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate()
1914 rdev->saved_raid_disk = role; in super_1_validate()
1920 rdev->saved_raid_disk = -1; in super_1_validate()
1998 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()
3022 rdev->saved_raid_disk = rdev->raid_disk; in state_store()
3073 rdev->saved_raid_disk >= 0) { in state_store()
3191 rdev->saved_raid_disk = slot; in slot_store()
3193 rdev->saved_raid_disk = -1; in slot_store()
3628 rdev->saved_raid_disk = -1; in md_rdev_init()
6752 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
Draid10.c2152 if (rdev->saved_raid_disk < 0 && !_enough(conf, 1, -1)) in raid10_add_disk()
2161 if (rdev->saved_raid_disk >= first && in raid10_add_disk()
2162 rdev->saved_raid_disk < conf->geo.raid_disks && in raid10_add_disk()
2163 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()
2164 mirror = rdev->saved_raid_disk; in raid10_add_disk()
2195 if (rdev->saved_raid_disk != mirror) in raid10_add_disk()
4228 disk->rdev->saved_raid_disk < 0) in raid10_run()
4234 disk->replacement->saved_raid_disk < 0) { in raid10_run()
Draid5.c7604 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf()
8306 if (rdev->saved_raid_disk < 0 && has_failed(conf)) in raid5_add_disk()
8317 if (rdev->saved_raid_disk >= first && in raid5_add_disk()
8318 rdev->saved_raid_disk <= last && in raid5_add_disk()
8319 conf->disks[rdev->saved_raid_disk].rdev == NULL) in raid5_add_disk()
8320 first = rdev->saved_raid_disk; in raid5_add_disk()
8327 if (rdev->saved_raid_disk != disk) in raid5_add_disk()