Lines Matching refs:raid_disk
4828 int raid_disk, memory, max_disks;
4902 raid_disk = rdev->raid_disk;
4903 if (raid_disk >= max_disks
4904 || raid_disk < 0)
4906 disk = conf->disks + raid_disk;
4914 mdname(mddev), bdevname(rdev->bdev, b), raid_disk);
4964 static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded)
4968 if (raid_disk < max_degraded)
4972 if (raid_disk >= raid_disks - max_degraded)
4976 if (raid_disk == 0 ||
4977 raid_disk == raid_disks - 1)
4984 if (raid_disk == raid_disks - 1)
5090 if (rdev->raid_disk < 0)
5111 if (!only_parity(rdev->raid_disk,
5117 if (!only_parity(rdev->raid_disk,
5407 if (rdev->raid_disk >= 0)
5408 first = last = rdev->raid_disk;
5423 rdev->raid_disk = disk;
5531 if (rdev->raid_disk < 0 &&
5577 if (rdev->raid_disk < 0 &&
5581 if (rdev->raid_disk >= conf->previous_raid_disks) {
5586 sprintf(nm, "rd%d", rdev->raid_disk);
5681 sprintf(nm, "rd%d", rdev->raid_disk);
5683 rdev->raid_disk = -1;