Lines Matching refs:raid_disk

536 		if (rdev->raid_disk >= 0 &&  in submit_flushes()
1271 rdev->raid_disk = -1; in super_90_validate()
1371 rdev->raid_disk = desc->raid_disk; in super_90_validate()
1372 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate()
1379 rdev->raid_disk = desc->raid_disk; in super_90_validate()
1472 if (rdev2->raid_disk >= 0 && in super_90_sync()
1479 if (rdev2->raid_disk < 0 || in super_90_sync()
1483 desc_nr = rdev2->raid_disk; in super_90_sync()
1493 d->raid_disk = rdev2->raid_disk; in super_90_sync()
1495 d->raid_disk = rdev2->desc_nr; /* compatibility */ in super_90_sync()
1519 d->raid_disk = i; in super_90_sync()
1782 rdev->raid_disk = -1; in super_1_validate()
1916 rdev->raid_disk = 0; in super_1_validate()
1935 rdev->raid_disk = role; in super_1_validate()
1997 if (rdev->raid_disk >= 0 && !test_bit(Journal, &rdev->flags) && in super_1_sync()
2106 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2109 else if (rdev2->raid_disk >= 0) in super_1_sync()
2110 sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); in super_1_sync()
2259 rdev->raid_disk == -1) in match_mddev_units()
2264 rdev2->raid_disk == -1) in match_mddev_units()
2297 if (rdev->raid_disk < 0) in md_integrity_register()
2587 rdev->raid_disk < 0 && in sync_sbs()
2606 if ((iter->raid_disk >= 0) && !test_bit(Faulty, &iter->flags)) { in does_sb_need_changing()
2620 if (role == MD_DISK_ROLE_SPARE && rdev->raid_disk >= 0 && in does_sb_need_changing()
2678 if (rdev->raid_disk >= 0 && in md_update_sb()
2967 if (rdev->raid_disk >= 0) in state_store()
3012 } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { in state_store()
3023 } else if (cmd_match(buf, "-insync") && rdev->raid_disk >= 0 && in state_store()
3027 rdev->saved_raid_disk = rdev->raid_disk; in state_store()
3028 rdev->raid_disk = -1; in state_store()
3042 if (rdev->raid_disk >= 0 && in state_store()
3077 else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) && in state_store()
3135 else if (rdev->raid_disk < 0) in slot_show()
3138 return sprintf(page, "%d\n", rdev->raid_disk); in slot_show()
3164 if (rdev->raid_disk == -1) in slot_store()
3171 if (rdev->raid_disk >= 0) in slot_store()
3181 if (rdev->raid_disk != -1) in slot_store()
3194 rdev->raid_disk = slot; in slot_store()
3203 rdev->raid_disk = -1; in slot_store()
3214 rdev->raid_disk = slot; in slot_store()
3239 if (rdev->mddev->pers && rdev->raid_disk >= 0) in offset_store()
3380 if (my_mddev->pers && rdev->raid_disk >= 0) { in rdev_size_store()
3440 rdev->raid_disk >= 0) in recovery_start_store()
3508 rdev->raid_disk >= 0) in ppl_sector_store()
3545 rdev->raid_disk >= 0) in ppl_size_store()
3634 rdev->raid_disk = -1; in md_rdev_init()
3778 rdev->raid_disk = rdev->desc_nr; in analyze_sbs()
3780 } else if (rdev->raid_disk >= in analyze_sbs()
3783 rdev->raid_disk = -1; in analyze_sbs()
3967 rdev->new_raid_disk = rdev->raid_disk; in level_store()
4041 if (rdev->raid_disk < 0) in level_store()
4045 if (rdev->new_raid_disk == rdev->raid_disk) in level_store()
4050 if (rdev->raid_disk < 0) in level_store()
4052 if (rdev->new_raid_disk == rdev->raid_disk) in level_store()
4054 rdev->raid_disk = rdev->new_raid_disk; in level_store()
4055 if (rdev->raid_disk < 0) in level_store()
4060 rdev->raid_disk, mdname(mddev)); in level_store()
5979 if (rdev->raid_disk >= 0 && !bdev_nonrot(rdev->bdev)) { in md_run()
6020 if (rdev->raid_disk >= 0) in md_run()
6389 if (rdev->raid_disk >= 0) in do_md_stop()
6655 info.raid_disk = rdev->raid_disk; in get_disk_info()
6671 info.raid_disk = -1; in get_disk_info()
6751 info->raid_disk < mddev->raid_disks) { in md_add_new_disk()
6752 rdev->raid_disk = info->raid_disk; in md_add_new_disk()
6756 rdev->raid_disk = -1; in md_add_new_disk()
6757 rdev->saved_raid_disk = rdev->raid_disk; in md_add_new_disk()
6762 rdev->raid_disk != info->raid_disk) { in md_add_new_disk()
6813 rdev->raid_disk = -1; in md_add_new_disk()
6857 if (info->raid_disk < mddev->raid_disks) in md_add_new_disk()
6858 rdev->raid_disk = info->raid_disk; in md_add_new_disk()
6860 rdev->raid_disk = -1; in md_add_new_disk()
6862 if (rdev->raid_disk < mddev->raid_disks) in md_add_new_disk()
6899 if (rdev->raid_disk < 0) in hot_remove_disk()
6905 if (rdev->raid_disk >= 0) in hot_remove_disk()
6981 rdev->raid_disk = -1; in hot_add_disk()
8045 if (rdev->raid_disk >= 0 && in status_resync()
8269 if (rdev->raid_disk < 0) in md_seq_show()
8847 if (rdev->raid_disk >= 0 && in md_do_sync()
9065 if (rdev->raid_disk >= 0 && in md_do_sync()
9129 rdev->raid_disk >= 0 && in remove_and_add_spares()
9147 rdev->raid_disk >= 0 && in remove_and_add_spares()
9156 rdev->saved_raid_disk = rdev->raid_disk; in remove_and_add_spares()
9157 rdev->raid_disk = -1; in remove_and_add_spares()
9176 if (rdev->raid_disk >= 0 && in remove_and_add_spares()
9181 if (rdev->raid_disk >= 0) in remove_and_add_spares()
9342 rdev->raid_disk < 0) in md_check_recovery()
9696 if (role != rdev2->raid_disk) { in check_sb_changes()
9700 if (rdev2->raid_disk == -1 && role != MD_DISK_ROLE_SPARE && in check_sb_changes()