raid_disk 830 drivers/md/dm-raid.c rs->dev[i].rdev.raid_disk = i; raid_disk 2058 drivers/md/dm-raid.c rdev->raid_disk); raid_disk 2127 drivers/md/dm-raid.c sb->array_position = cpu_to_le32(rdev->raid_disk); raid_disk 2351 drivers/md/dm-raid.c r->raid_disk); raid_disk 2411 drivers/md/dm-raid.c if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) { raid_disk 2416 drivers/md/dm-raid.c if (role != r->raid_disk) { raid_disk 2425 drivers/md/dm-raid.c sb2->array_position = cpu_to_le32(r->raid_disk); raid_disk 2434 drivers/md/dm-raid.c DMINFO("raid device #%d now at position #%d", role, r->raid_disk); raid_disk 2454 drivers/md/dm-raid.c if (rs_is_raid0(rs) || !rdev->sb_page || rdev->raid_disk < 0) raid_disk 2507 drivers/md/dm-raid.c rdev->saved_raid_disk = rdev->raid_disk; raid_disk 2579 drivers/md/dm-raid.c rdev->raid_disk = rdev->saved_raid_disk = -1; raid_disk 2716 drivers/md/dm-raid.c rdev->raid_disk = i++; raid_disk 2904 drivers/md/dm-raid.c rdev->raid_disk = d; raid_disk 3618 drivers/md/dm-raid.c if (test_bit(rs->dev[i].rdev.raid_disk, (void *) rs->rebuild_disks)) raid_disk 3620 drivers/md/dm-raid.c rs->dev[i].rdev.raid_disk); raid_disk 3634 drivers/md/dm-raid.c rs->dev[i].rdev.raid_disk); raid_disk 3810 drivers/md/dm-raid.c if (r->raid_disk >= 0) { raid_disk 3817 drivers/md/dm-raid.c r->raid_disk = r->saved_raid_disk = i; raid_disk 3824 drivers/md/dm-raid.c r->raid_disk = r->saved_raid_disk = -1; raid_disk 200 drivers/md/md-bitmap.c if (rdev->raid_disk >= 0 && raid_disk 463 drivers/md/md-cluster.c if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) { raid_disk 1082 drivers/md/md-cluster.c if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) { raid_disk 1261 drivers/md/md-cluster.c if (rdev->raid_disk >= 0 && !test_bit(Faulty, &rdev->flags)) { raid_disk 100 drivers/md/md-linear.c int j = rdev->raid_disk; raid_disk 204 drivers/md/md-linear.c rdev->raid_disk = rdev->saved_raid_disk; raid_disk 243 drivers/md/md-multipath.c if (rdev->raid_disk >= 0) raid_disk 244 drivers/md/md-multipath.c first = last = rdev->raid_disk; raid_disk 258 drivers/md/md-multipath.c rdev->raid_disk = path; raid_disk 275 drivers/md/md-multipath.c int number = rdev->raid_disk; raid_disk 401 drivers/md/md-multipath.c disk_idx = rdev->raid_disk; raid_disk 504 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 1218 drivers/md/md.c rdev->raid_disk = -1; raid_disk 1318 drivers/md/md.c rdev->raid_disk = desc->raid_disk; raid_disk 1319 drivers/md/md.c rdev->saved_raid_disk = desc->raid_disk; raid_disk 1326 drivers/md/md.c rdev->raid_disk = desc->raid_disk; raid_disk 1419 drivers/md/md.c if (rdev2->raid_disk >= 0 && raid_disk 1426 drivers/md/md.c if (rdev2->raid_disk < 0 || raid_disk 1430 drivers/md/md.c desc_nr = rdev2->raid_disk; raid_disk 1440 drivers/md/md.c d->raid_disk = rdev2->raid_disk; raid_disk 1442 drivers/md/md.c d->raid_disk = rdev2->desc_nr; /* compatibility */ raid_disk 1466 drivers/md/md.c d->raid_disk = i; raid_disk 1732 drivers/md/md.c rdev->raid_disk = -1; raid_disk 1866 drivers/md/md.c rdev->raid_disk = 0; raid_disk 1885 drivers/md/md.c rdev->raid_disk = role; raid_disk 1947 drivers/md/md.c if (rdev->raid_disk >= 0 && !test_bit(Journal, &rdev->flags) && raid_disk 2056 drivers/md/md.c sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); raid_disk 2059 drivers/md/md.c else if (rdev2->raid_disk >= 0) raid_disk 2060 drivers/md/md.c sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk); raid_disk 2182 drivers/md/md.c rdev->raid_disk == -1) raid_disk 2187 drivers/md/md.c rdev2->raid_disk == -1) raid_disk 2221 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 2497 drivers/md/md.c rdev->raid_disk < 0 && raid_disk 2516 drivers/md/md.c if ((rdev->raid_disk >= 0) && !test_bit(Faulty, &rdev->flags)) raid_disk 2528 drivers/md/md.c if (role == 0xffff && rdev->raid_disk >=0 && raid_disk 2586 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 2872 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 2916 drivers/md/md.c } else if (cmd_match(buf, "insync") && rdev->raid_disk == -1) { raid_disk 2925 drivers/md/md.c } else if (cmd_match(buf, "-insync") && rdev->raid_disk >= 0 && raid_disk 2929 drivers/md/md.c rdev->saved_raid_disk = rdev->raid_disk; raid_disk 2930 drivers/md/md.c rdev->raid_disk = -1; raid_disk 2944 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 2979 drivers/md/md.c else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) && raid_disk 3035 drivers/md/md.c else if (rdev->raid_disk < 0) raid_disk 3038 drivers/md/md.c return sprintf(page, "%d\n", rdev->raid_disk); raid_disk 3064 drivers/md/md.c if (rdev->raid_disk == -1) raid_disk 3071 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 3081 drivers/md/md.c if (rdev->raid_disk != -1) raid_disk 3094 drivers/md/md.c rdev->raid_disk = slot; raid_disk 3104 drivers/md/md.c rdev->raid_disk = -1; raid_disk 3115 drivers/md/md.c rdev->raid_disk = slot; raid_disk 3140 drivers/md/md.c if (rdev->mddev->pers && rdev->raid_disk >= 0) raid_disk 3260 drivers/md/md.c if (my_mddev->pers && rdev->raid_disk >= 0) { raid_disk 3345 drivers/md/md.c rdev->raid_disk >= 0) raid_disk 3413 drivers/md/md.c rdev->raid_disk >= 0) raid_disk 3450 drivers/md/md.c rdev->raid_disk >= 0) raid_disk 3538 drivers/md/md.c rdev->raid_disk = -1; raid_disk 3684 drivers/md/md.c rdev->raid_disk = rdev->desc_nr; raid_disk 3686 drivers/md/md.c } else if (rdev->raid_disk >= raid_disk 3689 drivers/md/md.c rdev->raid_disk = -1; raid_disk 3873 drivers/md/md.c rdev->new_raid_disk = rdev->raid_disk; raid_disk 3945 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 3949 drivers/md/md.c if (rdev->new_raid_disk == rdev->raid_disk) raid_disk 3954 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 3956 drivers/md/md.c if (rdev->new_raid_disk == rdev->raid_disk) raid_disk 3958 drivers/md/md.c rdev->raid_disk = rdev->new_raid_disk; raid_disk 3959 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 3964 drivers/md/md.c rdev->raid_disk, mdname(mddev)); raid_disk 5794 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 5831 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 6195 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 6467 drivers/md/md.c info.raid_disk = rdev->raid_disk; raid_disk 6483 drivers/md/md.c info.raid_disk = -1; raid_disk 6564 drivers/md/md.c info->raid_disk < mddev->raid_disks) { raid_disk 6565 drivers/md/md.c rdev->raid_disk = info->raid_disk; raid_disk 6569 drivers/md/md.c rdev->raid_disk = -1; raid_disk 6570 drivers/md/md.c rdev->saved_raid_disk = rdev->raid_disk; raid_disk 6575 drivers/md/md.c rdev->raid_disk != info->raid_disk) { raid_disk 6626 drivers/md/md.c rdev->raid_disk = -1; raid_disk 6670 drivers/md/md.c if (info->raid_disk < mddev->raid_disks) raid_disk 6671 drivers/md/md.c rdev->raid_disk = info->raid_disk; raid_disk 6673 drivers/md/md.c rdev->raid_disk = -1; raid_disk 6675 drivers/md/md.c if (rdev->raid_disk < mddev->raid_disks) raid_disk 6713 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 6719 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 6794 drivers/md/md.c rdev->raid_disk = -1; raid_disk 7840 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 8050 drivers/md/md.c if (rdev->raid_disk < 0) raid_disk 8552 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 8770 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 8835 drivers/md/md.c rdev->raid_disk >= 0 && raid_disk 8853 drivers/md/md.c rdev->raid_disk >= 0 && raid_disk 8862 drivers/md/md.c rdev->saved_raid_disk = rdev->raid_disk; raid_disk 8863 drivers/md/md.c rdev->raid_disk = -1; raid_disk 8882 drivers/md/md.c if (rdev->raid_disk >= 0 && raid_disk 8887 drivers/md/md.c if (rdev->raid_disk >= 0) raid_disk 9048 drivers/md/md.c rdev->raid_disk < 0) raid_disk 9393 drivers/md/md.c if (role != rdev2->raid_disk) { raid_disk 9397 drivers/md/md.c if (rdev2->raid_disk == -1 && role != 0xffff && raid_disk 79 drivers/md/md.h int raid_disk; /* role of device in array */ raid_disk 629 drivers/md/md.h sprintf(nm, "rd%d", rdev->raid_disk); raid_disk 641 drivers/md/md.h sprintf(nm, "rd%d", rdev->raid_disk); raid_disk 737 drivers/md/md.h extern void md_reload_sb(struct mddev *mddev, int raid_disk); raid_disk 195 drivers/md/raid0.c int j = rdev1->raid_disk; raid_disk 660 drivers/md/raid0.c if (rdev->raid_disk == mddev->raid_disks-1) { raid_disk 1458 drivers/md/raid1.c raid1_log(mddev, "wait rdev %d blocked", blocked_rdev->raid_disk); raid_disk 1757 drivers/md/raid1.c if (rdev->raid_disk >= 0) raid_disk 1758 drivers/md/raid1.c first = last = rdev->raid_disk; raid_disk 1778 drivers/md/raid1.c rdev->raid_disk = mirror; raid_disk 1793 drivers/md/raid1.c rdev->raid_disk = mirror; raid_disk 1810 drivers/md/raid1.c int number = rdev->raid_disk; raid_disk 2998 drivers/md/raid1.c int disk_idx = rdev->raid_disk; raid_disk 3303 drivers/md/raid1.c if (rdev && rdev->raid_disk != d2) { raid_disk 3305 drivers/md/raid1.c rdev->raid_disk = d2; raid_disk 3309 drivers/md/raid1.c mdname(mddev), rdev->raid_disk); raid_disk 382 drivers/md/raid10.c rdev->raid_disk)) raid_disk 1468 drivers/md/raid10.c raid10_log(conf->mddev, "wait rdev %d blocked", blocked_rdev->raid_disk); raid_disk 1648 drivers/md/raid10.c && !enough(conf, rdev->raid_disk)) { raid_disk 1773 drivers/md/raid10.c if (rdev->raid_disk >= 0) raid_disk 1774 drivers/md/raid10.c first = last = rdev->raid_disk; raid_disk 1792 drivers/md/raid10.c rdev->raid_disk = mirror; raid_disk 1808 drivers/md/raid10.c rdev->raid_disk = mirror; raid_disk 1826 drivers/md/raid10.c int number = rdev->raid_disk; raid_disk 3779 drivers/md/raid10.c disk_idx = rdev->raid_disk; raid_disk 4036 drivers/md/raid10.c if (rdev->raid_disk >= 0) { raid_disk 4037 drivers/md/raid10.c rdev->new_raid_disk = rdev->raid_disk * 2; raid_disk 4211 drivers/md/raid10.c if (rdev->raid_disk >= 0) { raid_disk 4274 drivers/md/raid10.c if (rdev->raid_disk > -1 && raid_disk 4301 drivers/md/raid10.c if (rdev->raid_disk < 0 && raid_disk 4304 drivers/md/raid10.c if (rdev->raid_disk >= raid_disk 4313 drivers/md/raid10.c } else if (rdev->raid_disk >= conf->prev.raid_disks raid_disk 995 drivers/md/raid5-ppl.c __func__, rdev->raid_disk, i, raid_disk 1054 drivers/md/raid5-ppl.c rdev->raid_disk, (unsigned long long)rdev->ppl.sector); raid_disk 1091 drivers/md/raid5-ppl.c pr_debug("%s: disk: %d\n", __func__, rdev->raid_disk); raid_disk 1476 drivers/md/raid5-ppl.c __func__, rdev->raid_disk, add ? "add" : "remove", raid_disk 1479 drivers/md/raid5-ppl.c if (rdev->raid_disk < 0) raid_disk 1482 drivers/md/raid5-ppl.c if (rdev->raid_disk >= ppl_conf->count) raid_disk 1485 drivers/md/raid5-ppl.c log = &ppl_conf->child_logs[rdev->raid_disk]; raid_disk 5892 drivers/md/raid5.c if (rdev->raid_disk >= 0 && raid_disk 5999 drivers/md/raid5.c if (rdev->raid_disk >= 0 && raid_disk 6880 drivers/md/raid5.c int raid_disk, memory, max_disks; raid_disk 7024 drivers/md/raid5.c raid_disk = rdev->raid_disk; raid_disk 7025 drivers/md/raid5.c if (raid_disk >= max_disks raid_disk 7026 drivers/md/raid5.c || raid_disk < 0 || test_bit(Journal, &rdev->flags)) raid_disk 7028 drivers/md/raid5.c disk = conf->disks + raid_disk; raid_disk 7043 drivers/md/raid5.c mdname(mddev), bdevname(rdev->bdev, b), raid_disk); raid_disk 7044 drivers/md/raid5.c } else if (rdev->saved_raid_disk != raid_disk) raid_disk 7123 drivers/md/raid5.c static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) raid_disk 7127 drivers/md/raid5.c if (raid_disk < max_degraded) raid_disk 7131 drivers/md/raid5.c if (raid_disk >= raid_disks - max_degraded) raid_disk 7135 drivers/md/raid5.c if (raid_disk == 0 || raid_disk 7136 drivers/md/raid5.c raid_disk == raid_disks - 1) raid_disk 7143 drivers/md/raid5.c if (raid_disk == raid_disks - 1) raid_disk 7175 drivers/md/raid5.c if (rdev->raid_disk < 0) raid_disk 7351 drivers/md/raid5.c if (!only_parity(rdev->raid_disk, raid_disk 7357 drivers/md/raid5.c if (!only_parity(rdev->raid_disk, raid_disk 7599 drivers/md/raid5.c int number = rdev->raid_disk; raid_disk 7693 drivers/md/raid5.c rdev->raid_disk = 0; raid_disk 7715 drivers/md/raid5.c if (rdev->raid_disk >= 0) raid_disk 7716 drivers/md/raid5.c first = last = rdev->raid_disk; raid_disk 7731 drivers/md/raid5.c rdev->raid_disk = disk; raid_disk 7747 drivers/md/raid5.c rdev->raid_disk = disk; raid_disk 7939 drivers/md/raid5.c if (rdev->raid_disk < 0 && raid_disk 7942 drivers/md/raid5.c if (rdev->raid_disk raid_disk 7951 drivers/md/raid5.c } else if (rdev->raid_disk >= conf->previous_raid_disks raid_disk 8016 drivers/md/raid5.c if (rdev->raid_disk >= 0 && raid_disk 108 include/uapi/linux/raid/md_p.h __u32 raid_disk; /* 3 The role of the device in the raid set */ raid_disk 128 include/uapi/linux/raid/md_u.h int raid_disk; raid_disk 139 include/uapi/linux/raid/md_u.h int raid_disk; raid_disk 209 init/do_mounts_md.c dinfo.raid_disk = i;