Searched refs:raid_disk (Results 1 – 12 of 12) sorted by relevance
/drivers/md/ |
D | md.c | 441 if (rdev->raid_disk >= 0 && in submit_flushes() 1129 rdev->raid_disk = -1; in super_90_validate() 1227 rdev->raid_disk = desc->raid_disk; in super_90_validate() 1228 rdev->saved_raid_disk = desc->raid_disk; in super_90_validate() 1235 rdev->raid_disk = desc->raid_disk; in super_90_validate() 1328 if (rdev2->raid_disk >= 0 && in super_90_sync() 1335 if (rdev2->raid_disk < 0 || in super_90_sync() 1339 desc_nr = rdev2->raid_disk; in super_90_sync() 1349 d->raid_disk = rdev2->raid_disk; in super_90_sync() 1351 d->raid_disk = rdev2->desc_nr; /* compatibility */ in super_90_sync() [all …]
|
D | multipath.c | 253 if (rdev->raid_disk >= 0) in multipath_add_disk() 254 first = last = rdev->raid_disk; in multipath_add_disk() 269 rdev->raid_disk = path; in multipath_add_disk() 286 int number = rdev->raid_disk; in multipath_remove_disk() 410 disk_idx = rdev->raid_disk; in multipath_run()
|
D | md.h | 86 int raid_disk; /* role of device in array */ member 604 sprintf(nm, "rd%d", rdev->raid_disk); in sysfs_link_rdev() 616 sprintf(nm, "rd%d", rdev->raid_disk); in sysfs_unlink_rdev() 711 extern void md_reload_sb(struct mddev *mddev, int raid_disk);
|
D | dm-raid.c | 830 rs->dev[i].rdev.raid_disk = i; in parse_dev_params() 2024 rdev->raid_disk); in read_disk_sb() 2093 sb->array_position = cpu_to_le32(rdev->raid_disk); in super_sync() 2317 r->raid_disk); in super_init_validation() 2377 if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) { in super_init_validation() 2382 if (role != r->raid_disk) { in super_init_validation() 2391 sb2->array_position = cpu_to_le32(r->raid_disk); in super_init_validation() 2400 DMINFO("raid device #%d now at position #%d", role, r->raid_disk); in super_init_validation() 2420 if (rs_is_raid0(rs) || !rdev->sb_page || rdev->raid_disk < 0) in super_validate() 2473 rdev->saved_raid_disk = rdev->raid_disk; in super_validate() [all …]
|
D | raid5-ppl.c | 860 __func__, rdev->raid_disk, i, in ppl_recover() 919 rdev->raid_disk, (unsigned long long)rdev->ppl.sector); in ppl_write_empty_header() 956 pr_debug("%s: disk: %d\n", __func__, rdev->raid_disk); in ppl_load_distributed() 1336 __func__, rdev->raid_disk, add ? "add" : "remove", in ppl_modify_log() 1339 if (rdev->raid_disk < 0) in ppl_modify_log() 1342 if (rdev->raid_disk >= ppl_conf->count) in ppl_modify_log() 1345 log = &ppl_conf->child_logs[rdev->raid_disk]; in ppl_modify_log()
|
D | linear.c | 108 int j = rdev->raid_disk; in linear_conf() 212 rdev->raid_disk = rdev->saved_raid_disk; in linear_add()
|
D | raid1.c | 1424 raid1_log(mddev, "wait rdev %d blocked", blocked_rdev->raid_disk); in raid1_write_request() 1721 if (rdev->raid_disk >= 0) in raid1_add_disk() 1722 first = last = rdev->raid_disk; in raid1_add_disk() 1743 rdev->raid_disk = mirror; in raid1_add_disk() 1758 rdev->raid_disk = mirror; in raid1_add_disk() 1775 int number = rdev->raid_disk; in raid1_remove_disk() 2968 int disk_idx = rdev->raid_disk; in setup_conf() 3270 if (rdev && rdev->raid_disk != d2) { in raid1_reshape() 3272 rdev->raid_disk = d2; in raid1_reshape() 3276 mdname(mddev), rdev->raid_disk); in raid1_reshape()
|
D | raid10.c | 416 rdev->raid_disk)) in raid10_end_read_request() 1471 raid10_log(conf->mddev, "wait rdev %d blocked", blocked_rdev->raid_disk); in raid10_write_request() 1652 && !enough(conf, rdev->raid_disk)) { in raid10_error() 1778 if (rdev->raid_disk >= 0) in raid10_add_disk() 1779 first = last = rdev->raid_disk; in raid10_add_disk() 1797 rdev->raid_disk = mirror; in raid10_add_disk() 1813 rdev->raid_disk = mirror; in raid10_add_disk() 1831 int number = rdev->raid_disk; in raid10_remove_disk() 3678 disk_idx = rdev->raid_disk; in raid10_run() 3936 if (rdev->raid_disk >= 0) { in raid10_takeover_raid0() [all …]
|
D | raid5.c | 6856 int raid_disk, memory, max_disks; in setup_conf() local 6998 raid_disk = rdev->raid_disk; in setup_conf() 6999 if (raid_disk >= max_disks in setup_conf() 7000 || raid_disk < 0 || test_bit(Journal, &rdev->flags)) in setup_conf() 7002 disk = conf->disks + raid_disk; in setup_conf() 7017 mdname(mddev), bdevname(rdev->bdev, b), raid_disk); in setup_conf() 7018 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf() 7097 static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) in only_parity() argument 7101 if (raid_disk < max_degraded) in only_parity() 7105 if (raid_disk >= raid_disks - max_degraded) in only_parity() [all …]
|
D | raid0.c | 197 int j = rdev1->raid_disk; in create_strip_zones() 657 if (rdev->raid_disk == mddev->raid_disks-1) { in raid0_takeover_raid45()
|
D | md-cluster.c | 1074 if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) { in metadata_update_finish() 1179 if (rdev->raid_disk >= 0 && !test_bit(Faulty, &rdev->flags)) { in update_size()
|
D | bitmap.c | 199 if (rdev->raid_disk >= 0 && in next_active_rdev()
|