/linux-6.1.9/drivers/md/ |
D | md.c | 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() [all …]
|
D | md-multipath.c | 215 if (rdev->raid_disk >= 0) in multipath_add_disk() 216 first = last = rdev->raid_disk; in multipath_add_disk() 230 rdev->raid_disk = path; in multipath_add_disk() 247 int number = rdev->raid_disk; in multipath_remove_disk() 372 disk_idx = rdev->raid_disk; in multipath_run()
|
D | md.h | 89 int raid_disk; /* role of device in array */ member 666 sprintf(nm, "rd%d", rdev->raid_disk); in sysfs_link_rdev() 678 sprintf(nm, "rd%d", rdev->raid_disk); in sysfs_unlink_rdev() 783 extern void md_reload_sb(struct mddev *mddev, int raid_disk);
|
D | dm-raid.c | 833 rs->dev[i].rdev.raid_disk = i; in parse_dev_params() 2043 rdev->raid_disk); in read_disk_sb() 2112 sb->array_position = cpu_to_le32(rdev->raid_disk); in super_sync() 2336 r->raid_disk); in super_init_validation() 2394 if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) { in super_init_validation() 2399 if (role != r->raid_disk) { in super_init_validation() 2408 sb2->array_position = cpu_to_le32(r->raid_disk); in super_init_validation() 2417 DMINFO("raid device #%d now at position #%d", role, r->raid_disk); in super_init_validation() 2437 if (rs_is_raid0(rs) || !rdev->sb_page || rdev->raid_disk < 0) in super_validate() 2490 rdev->saved_raid_disk = rdev->raid_disk; in super_validate() [all …]
|
D | md-linear.c | 76 int j = rdev->raid_disk; in linear_conf() 172 rdev->raid_disk = rdev->saved_raid_disk; in linear_add()
|
D | raid5-ppl.c | 990 __func__, rdev->raid_disk, i, in ppl_recover() 1049 rdev->raid_disk, (unsigned long long)rdev->ppl.sector); in ppl_write_empty_header() 1086 pr_debug("%s: disk: %d\n", __func__, rdev->raid_disk); in ppl_load_distributed() 1469 __func__, rdev->raid_disk, add ? "add" : "remove", in ppl_modify_log() 1472 if (rdev->raid_disk < 0) in ppl_modify_log() 1475 if (rdev->raid_disk >= ppl_conf->count) in ppl_modify_log() 1478 log = &ppl_conf->child_logs[rdev->raid_disk]; in ppl_modify_log()
|
D | md-autodetect.c | 210 dinfo.raid_disk = i; in md_setup_drive()
|
D | raid5.c | 6340 if (rdev->raid_disk >= 0 && in reshape_request() 6449 if (rdev->raid_disk >= 0 && in reshape_request() 7431 int raid_disk, memory, max_disks; in setup_conf() local 7585 raid_disk = rdev->raid_disk; in setup_conf() 7586 if (raid_disk >= max_disks in setup_conf() 7587 || raid_disk < 0 || test_bit(Journal, &rdev->flags)) in setup_conf() 7589 disk = conf->disks + raid_disk; in setup_conf() 7603 mdname(mddev), rdev->bdev, raid_disk); in setup_conf() 7604 } else if (rdev->saved_raid_disk != raid_disk) in setup_conf() 7684 static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) in only_parity() argument [all …]
|
D | raid1.c | 1486 raid1_log(mddev, "wait rdev %d blocked", blocked_rdev->raid_disk); in raid1_write_request() 1796 if (rdev->raid_disk >= 0) in raid1_add_disk() 1797 first = last = rdev->raid_disk; in raid1_add_disk() 1817 rdev->raid_disk = mirror; in raid1_add_disk() 1832 rdev->raid_disk = mirror; in raid1_add_disk() 1847 int number = rdev->raid_disk; in raid1_remove_disk() 3031 int disk_idx = rdev->raid_disk; in setup_conf() 3322 if (rdev && rdev->raid_disk != d2) { in raid1_reshape() 3324 rdev->raid_disk = d2; in raid1_reshape() 3328 mdname(mddev), rdev->raid_disk); in raid1_reshape()
|
D | raid10.c | 411 rdev->raid_disk)) in raid10_end_read_request() 1393 __func__, blocked_rdev->raid_disk); in wait_blocked_dev() 2035 if (test_bit(In_sync, &rdev->flags) && !enough(conf, rdev->raid_disk)) { in raid10_error() 2158 if (rdev->raid_disk >= 0) in raid10_add_disk() 2159 first = last = rdev->raid_disk; in raid10_add_disk() 2177 rdev->raid_disk = mirror; in raid10_add_disk() 2193 rdev->raid_disk = mirror; in raid10_add_disk() 2209 int number = rdev->raid_disk; in raid10_remove_disk() 4156 disk_idx = rdev->raid_disk; in raid10_run() 4389 if (rdev->raid_disk >= 0) { in raid10_takeover_raid0() [all …]
|
D | raid0.c | 161 int j = rdev1->raid_disk; in create_strip_zones() 609 if (rdev->raid_disk == mddev->raid_disks-1) { in raid0_takeover_raid45()
|
D | md-cluster.c | 463 if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) { in process_suspend_info() 1086 if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) { in metadata_update_finish() 1270 if (rdev->raid_disk >= 0 && !test_bit(Faulty, &rdev->flags)) { in update_size()
|
D | md-bitmap.c | 200 if (rdev->raid_disk >= 0 && in next_active_rdev()
|
/linux-6.1.9/include/uapi/linux/raid/ |
D | md_u.h | 128 int raid_disk; member 139 int raid_disk; member
|
D | md_p.h | 108 __u32 raid_disk; /* 3 The role of the device in the raid set */ member
|
/linux-6.1.9/Documentation/admin-guide/ |
D | md.rst | 492 device with same raid_disk.
|