raid_disks 234 drivers/md/dm-raid.c int raid_disks; raid_disks 727 drivers/md/dm-raid.c mddev->raid_disks = rs->raid_disks; raid_disks 750 drivers/md/dm-raid.c rs->raid_disks = raid_devs; raid_disks 756 drivers/md/dm-raid.c rs->md.raid_disks = raid_devs; raid_disks 789 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) { raid_disks 829 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) { raid_disks 1004 drivers/md/dm-raid.c for (i = 0; i < rs->md.raid_disks; i++) raid_disks 1013 drivers/md/dm-raid.c if (rebuild_cnt >= rs->md.raid_disks) raid_disks 1047 drivers/md/dm-raid.c for (i = 0; i < rs->md.raid_disks; i++) { raid_disks 1070 drivers/md/dm-raid.c group_size = (rs->md.raid_disks / copies); raid_disks 1071 drivers/md/dm-raid.c last_group_start = (rs->md.raid_disks / group_size) - 1; raid_disks 1073 drivers/md/dm-raid.c for (i = 0; i < rs->md.raid_disks; i++) { raid_disks 1173 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) { raid_disks 1306 drivers/md/dm-raid.c if (!__within_range(value, 0, rs->raid_disks - 1)) { raid_disks 1327 drivers/md/dm-raid.c if (!__within_range(value, 0, rs->md.raid_disks - 1)) { raid_disks 1444 drivers/md/dm-raid.c if (!__within_range(value, 2, rs->md.raid_disks)) { raid_disks 1470 drivers/md/dm-raid.c if (write_mostly >= rs->md.raid_disks) { raid_disks 1493 drivers/md/dm-raid.c if (raid10_copies > rs->md.raid_disks) { raid_disks 1571 drivers/md/dm-raid.c return rs->md.raid_disks - rs->raid_type->parity_devs; raid_disks 1577 drivers/md/dm-raid.c return rs->raid_disks - rs->raid_type->parity_devs; raid_disks 1588 drivers/md/dm-raid.c for (i = 0; i < rs->md.raid_disks; i++) { raid_disks 1755 drivers/md/dm-raid.c mddev->raid_disks == 1) raid_disks 1760 drivers/md/dm-raid.c !(rs->raid_disks % mddev->raid_disks)) raid_disks 1766 drivers/md/dm-raid.c mddev->raid_disks > 1) raid_disks 1782 drivers/md/dm-raid.c !(mddev->raid_disks % near_copies)) { raid_disks 1783 drivers/md/dm-raid.c mddev->raid_disks /= near_copies; raid_disks 1784 drivers/md/dm-raid.c mddev->delta_disks = mddev->raid_disks; raid_disks 1798 drivers/md/dm-raid.c max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks) raid_disks 1803 drivers/md/dm-raid.c mddev->raid_disks == 2) raid_disks 1810 drivers/md/dm-raid.c mddev->raid_disks == 2) { raid_disks 1817 drivers/md/dm-raid.c mddev->raid_disks == 1) raid_disks 1832 drivers/md/dm-raid.c mddev->raid_disks == 2) raid_disks 1854 drivers/md/dm-raid.c mddev->raid_disks == 2) raid_disks 1917 drivers/md/dm-raid.c mddev->raid_disks != rs->raid_disks; raid_disks 2114 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 2126 drivers/md/dm-raid.c sb->num_devices = cpu_to_le32(mddev->raid_disks); raid_disks 2245 drivers/md/dm-raid.c mddev->raid_disks = le32_to_cpu(sb->num_devices); raid_disks 2308 drivers/md/dm-raid.c mddev->raid_disks, mddev->raid_disks + rs->delta_disks); raid_disks 2361 drivers/md/dm-raid.c if (new_devs == rs->raid_disks || !rebuilds) { raid_disks 2365 drivers/md/dm-raid.c if (new_devs == rs->raid_disks) { raid_disks 2418 drivers/md/dm-raid.c if (mddev->raid_disks % __raid10_near_copies(mddev->layout) || raid_disks 2419 drivers/md/dm-raid.c rs->raid_disks % rs->raid10_copies) { raid_disks 2729 drivers/md/dm-raid.c unsigned int d = mddev->raid_disks = rs->raid_disks; raid_disks 2743 drivers/md/dm-raid.c rs->raid_disks); raid_disks 2776 drivers/md/dm-raid.c if (rs->raid_disks != mddev->raid_disks && raid_disks 2786 drivers/md/dm-raid.c if (rs->raid_disks % rs->raid10_copies) { raid_disks 2810 drivers/md/dm-raid.c mddev->raid_disks = rs->raid_disks; raid_disks 2821 drivers/md/dm-raid.c } else if (mddev->raid_disks < rs->raid_disks) raid_disks 2861 drivers/md/dm-raid.c cur_raid_devs = mddev->raid_disks; raid_disks 2895 drivers/md/dm-raid.c for (d = cur_raid_devs; d < rs->raid_disks; d++) { raid_disks 2970 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) { raid_disks 3525 drivers/md/dm-raid.c DMEMIT("%s %d ", rt->name, mddev->raid_disks); raid_disks 3539 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 3598 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 3617 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 3631 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 3662 drivers/md/dm-raid.c DMEMIT(" %d", rs->raid_disks); raid_disks 3663 drivers/md/dm-raid.c for (i = 0; i < rs->raid_disks; i++) raid_disks 3727 drivers/md/dm-raid.c for (i = 0; !r && i < rs->md.raid_disks; i++) raid_disks 3787 drivers/md/dm-raid.c for (i = 0; i < mddev->raid_disks; i++) { raid_disks 283 drivers/md/md-faulty.c static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 285 drivers/md/md-faulty.c WARN_ONCE(raid_disks, raid_disks 30 drivers/md/md-linear.c hi = mddev->raid_disks - 1; raid_disks 63 drivers/md/md-linear.c for (i = 0; i < conf->raid_disks && !ret ; i++) { raid_disks 72 drivers/md/md-linear.c static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 78 drivers/md/md-linear.c WARN_ONCE(sectors || raid_disks, raid_disks 85 drivers/md/md-linear.c static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) raid_disks 92 drivers/md/md-linear.c conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); raid_disks 104 drivers/md/md-linear.c if (j < 0 || j >= raid_disks || disk->rdev) { raid_disks 126 drivers/md/md-linear.c if (cnt != raid_disks) { raid_disks 142 drivers/md/md-linear.c for (i = 1; i < raid_disks; i++) raid_disks 158 drivers/md/md-linear.c conf->raid_disks = raid_disks; raid_disks 174 drivers/md/md-linear.c conf = linear_conf(mddev, mddev->raid_disks); raid_disks 201 drivers/md/md-linear.c if (rdev->saved_raid_disk != mddev->raid_disks) raid_disks 207 drivers/md/md-linear.c newconf = linear_conf(mddev,mddev->raid_disks+1); raid_disks 221 drivers/md/md-linear.c mddev->raid_disks++; raid_disks 222 drivers/md/md-linear.c WARN_ONCE(mddev->raid_disks != newconf->raid_disks, raid_disks 14 drivers/md/md-linear.h int raid_disks; /* a copy of mddev->raid_disks */ raid_disks 28 drivers/md/md-multipath.c int i, disks = conf->raid_disks; raid_disks 143 drivers/md/md-multipath.c seq_printf (seq, " [%d/%d] [", conf->raid_disks, raid_disks 144 drivers/md/md-multipath.c conf->raid_disks - mddev->degraded); raid_disks 146 drivers/md/md-multipath.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 160 drivers/md/md-multipath.c for (i = 0; i < mddev->raid_disks ; i++) { raid_disks 184 drivers/md/md-multipath.c if (conf->raid_disks - mddev->degraded <= 1) { raid_disks 208 drivers/md/md-multipath.c conf->raid_disks - mddev->degraded); raid_disks 221 drivers/md/md-multipath.c pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, raid_disks 222 drivers/md/md-multipath.c conf->raid_disks); raid_disks 224 drivers/md/md-multipath.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 241 drivers/md/md-multipath.c int last = mddev->raid_disks - 1; raid_disks 357 drivers/md/md-multipath.c static sector_t multipath_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 359 drivers/md/md-multipath.c WARN_ONCE(sectors || raid_disks, raid_disks 393 drivers/md/md-multipath.c conf->multipaths = kcalloc(mddev->raid_disks, raid_disks 403 drivers/md/md-multipath.c disk_idx >= mddev->raid_disks) raid_disks 415 drivers/md/md-multipath.c conf->raid_disks = mddev->raid_disks; raid_disks 425 drivers/md/md-multipath.c mddev->degraded = conf->raid_disks - working_disks; raid_disks 438 drivers/md/md-multipath.c mdname(mddev), conf->raid_disks - mddev->degraded, raid_disks 439 drivers/md/md-multipath.c mddev->raid_disks); raid_disks 12 drivers/md/md-multipath.h int raid_disks; raid_disks 603 drivers/md/md.c if (!mddev->raid_disks && list_empty(&mddev->disks) && raid_disks 1140 drivers/md/md.c if (sb->raid_disks <= 0) raid_disks 1224 drivers/md/md.c if (mddev->raid_disks == 0) { raid_disks 1235 drivers/md/md.c mddev->raid_disks = sb->raid_disks; raid_disks 1345 drivers/md/md.c int next_spare = mddev->raid_disks; raid_disks 1378 drivers/md/md.c sb->raid_disks = mddev->raid_disks; raid_disks 1462 drivers/md/md.c for (i=0 ; i < mddev->raid_disks ; i++) { raid_disks 1738 drivers/md/md.c if (mddev->raid_disks == 0) { raid_disks 1748 drivers/md/md.c mddev->raid_disks = le32_to_cpu(sb->raid_disks); raid_disks 1925 drivers/md/md.c sb->raid_disks = cpu_to_le32(mddev->raid_disks); raid_disks 2316 drivers/md/md.c choice = mddev->raid_disks; raid_disks 2339 drivers/md/md.c if (mddev->raid_disks) raid_disks 2454 drivers/md/md.c mddev->raid_disks = 0; raid_disks 2540 drivers/md/md.c (mddev->raid_disks != le32_to_cpu(sb->raid_disks)) || raid_disks 3090 drivers/md/md.c if (slot >= rdev->mddev->raid_disks && raid_disks 3091 drivers/md/md.c slot >= rdev->mddev->raid_disks + rdev->mddev->delta_disks) raid_disks 3112 drivers/md/md.c if (slot >= rdev->mddev->raid_disks && raid_disks 3113 drivers/md/md.c slot >= rdev->mddev->raid_disks + rdev->mddev->delta_disks) raid_disks 3687 drivers/md/md.c (mddev->raid_disks - min(0, mddev->delta_disks)) && raid_disks 3883 drivers/md/md.c mddev->raid_disks -= mddev->delta_disks; raid_disks 3947 drivers/md/md.c if (rdev->new_raid_disk >= mddev->raid_disks) raid_disks 4041 drivers/md/md.c if (mddev->raid_disks == 0) raid_disks 4045 drivers/md/md.c return sprintf(page, "%d (%d)\n", mddev->raid_disks, raid_disks 4046 drivers/md/md.c mddev->raid_disks - mddev->delta_disks); raid_disks 4047 drivers/md/md.c return sprintf(page, "%d\n", mddev->raid_disks); raid_disks 4050 drivers/md/md.c static int update_raid_disks(struct mddev *mddev, int raid_disks); raid_disks 4069 drivers/md/md.c int olddisks = mddev->raid_disks - mddev->delta_disks; raid_disks 4082 drivers/md/md.c mddev->raid_disks = n; raid_disks 4085 drivers/md/md.c mddev->raid_disks = n; raid_disks 4091 drivers/md/md.c __ATTR(raid_disks, S_IRUGO|S_IWUSR, raid_disks_show, raid_disks_store); raid_disks 4267 drivers/md/md.c mddev->raid_disks == 0 && raid_disks 5610 drivers/md/md.c if (!mddev->raid_disks) { raid_disks 5959 drivers/md/md.c mddev->raid_disks = 0; raid_disks 6319 drivers/md/md.c else if (mddev->raid_disks || mddev->major_version raid_disks 6396 drivers/md/md.c info.raid_disks = mddev->raid_disks; raid_disks 6510 drivers/md/md.c if (!mddev->raid_disks) { raid_disks 6564 drivers/md/md.c info->raid_disk < mddev->raid_disks) { raid_disks 6670 drivers/md/md.c if (info->raid_disk < mddev->raid_disks) raid_disks 6675 drivers/md/md.c if (rdev->raid_disk < mddev->raid_disks) raid_disks 6913 drivers/md/md.c if (info->raid_disks == 0) { raid_disks 6941 drivers/md/md.c mddev->raid_disks = info->raid_disks; raid_disks 7040 drivers/md/md.c static int update_raid_disks(struct mddev *mddev, int raid_disks) raid_disks 7049 drivers/md/md.c if (raid_disks <= 0 || raid_disks 7050 drivers/md/md.c (mddev->max_disks && raid_disks >= mddev->max_disks)) raid_disks 7058 drivers/md/md.c if (mddev->raid_disks < raid_disks && raid_disks 7061 drivers/md/md.c if (mddev->raid_disks > raid_disks && raid_disks 7066 drivers/md/md.c mddev->delta_disks = raid_disks - mddev->raid_disks; raid_disks 7113 drivers/md/md.c if (mddev->raid_disks != info->raid_disks) raid_disks 7142 drivers/md/md.c if (mddev->raid_disks != info->raid_disks) raid_disks 7143 drivers/md/md.c rv = update_raid_disks(mddev, info->raid_disks); raid_disks 7330 drivers/md/md.c if (!mddev->raid_disks && !mddev->external) raid_disks 7337 drivers/md/md.c if (!mddev->raid_disks && !mddev->external) raid_disks 7407 drivers/md/md.c if (mddev->raid_disks) { raid_disks 7425 drivers/md/md.c if ((!mddev->raid_disks && !mddev->external) raid_disks 8025 drivers/md/md.c if (mddev->pers || mddev->raid_disks || !list_empty(&mddev->disks)) { raid_disks 9152 drivers/md/md.c mddev->degraded != mddev->raid_disks) { raid_disks 9421 drivers/md/md.c if (mddev->raid_disks != le32_to_cpu(sb->raid_disks)) raid_disks 9422 drivers/md/md.c update_raid_disks(mddev, le32_to_cpu(sb->raid_disks)); raid_disks 309 drivers/md/md.h int raid_disks; raid_disks 572 drivers/md/md.h sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks); raid_disks 36 drivers/md/raid0.c int raid_disks = conf->strip_zone[0].nb_dev; raid_disks 39 drivers/md/raid0.c for (i = 0; i < raid_disks && !ret ; i++) { raid_disks 57 drivers/md/raid0.c int raid_disks = conf->strip_zone[0].nb_dev; raid_disks 67 drivers/md/raid0.c bdevname(conf->devlist[j*raid_disks raid_disks 181 drivers/md/raid0.c mddev->raid_disks), raid_disks 216 drivers/md/raid0.c if (j >= mddev->raid_disks) { raid_disks 232 drivers/md/raid0.c if (cnt != mddev->raid_disks) { raid_disks 234 drivers/md/raid0.c mdname(mddev), cnt, mddev->raid_disks); raid_disks 248 drivers/md/raid0.c dev = conf->devlist + i * mddev->raid_disks; raid_disks 332 drivers/md/raid0.c int raid_disks = conf->strip_zone[0].nb_dev; raid_disks 355 drivers/md/raid0.c return conf->devlist[(zone - conf->strip_zone)*raid_disks raid_disks 359 drivers/md/raid0.c static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 364 drivers/md/raid0.c WARN_ONCE(sectors || raid_disks, raid_disks 407 drivers/md/raid0.c (mddev->chunk_sectors << 9) * mddev->raid_disks); raid_disks 438 drivers/md/raid0.c int stripe = mddev->raid_disks * raid_disks 660 drivers/md/raid0.c if (rdev->raid_disk == mddev->raid_disks-1) { raid_disks 672 drivers/md/raid0.c mddev->raid_disks--; raid_disks 699 drivers/md/raid0.c if (mddev->raid_disks & 1) { raid_disks 704 drivers/md/raid0.c if (mddev->degraded != (mddev->raid_disks>>1)) { raid_disks 714 drivers/md/raid0.c mddev->delta_disks = - mddev->raid_disks / 2; raid_disks 715 drivers/md/raid0.c mddev->raid_disks += mddev->delta_disks; raid_disks 733 drivers/md/raid0.c if ((mddev->raid_disks - 1) != mddev->degraded) { raid_disks 758 drivers/md/raid0.c mddev->delta_disks = 1 - mddev->raid_disks; raid_disks 759 drivers/md/raid0.c mddev->raid_disks = 1; raid_disks 116 drivers/md/raid1.c int size = offsetof(struct r1bio, bios[pi->raid_disks]); raid_disks 142 drivers/md/raid1.c rps = kmalloc_array(pi->raid_disks, sizeof(struct resync_pages), raid_disks 150 drivers/md/raid1.c for (j = pi->raid_disks ; j-- ; ) { raid_disks 163 drivers/md/raid1.c need_pages = pi->raid_disks; raid_disks 166 drivers/md/raid1.c for (j = 0; j < pi->raid_disks; j++) { raid_disks 192 drivers/md/raid1.c while (++j < pi->raid_disks) raid_disks 208 drivers/md/raid1.c for (i = pi->raid_disks; i--; ) { raid_disks 224 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 246 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 329 drivers/md/raid1.c int raid_disks = conf->raid_disks; raid_disks 331 drivers/md/raid1.c for (mirror = 0; mirror < raid_disks * 2; mirror++) raid_disks 335 drivers/md/raid1.c BUG_ON(mirror == raid_disks * 2); raid_disks 367 drivers/md/raid1.c if (r1_bio->mddev->degraded == conf->raid_disks || raid_disks 368 drivers/md/raid1.c (r1_bio->mddev->degraded == conf->raid_disks-1 && raid_disks 617 drivers/md/raid1.c for (disk = 0 ; disk < conf->raid_disks * 2 ; disk++) { raid_disks 782 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 1207 drivers/md/raid1.c memset(r1_bio->bios, 0, conf->raid_disks * sizeof(r1_bio->bios[0])); raid_disks 1384 drivers/md/raid1.c disks = conf->raid_disks * 2; raid_disks 1398 drivers/md/raid1.c if (i < conf->raid_disks) raid_disks 1530 drivers/md/raid1.c conf->raid_disks - mddev->degraded > 1) raid_disks 1599 drivers/md/raid1.c seq_printf(seq, " [%d/%d] [", conf->raid_disks, raid_disks 1600 drivers/md/raid1.c conf->raid_disks - mddev->degraded); raid_disks 1602 drivers/md/raid1.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 1625 drivers/md/raid1.c && (conf->raid_disks - mddev->degraded) == 1) { raid_disks 1650 drivers/md/raid1.c mdname(mddev), conf->raid_disks - mddev->degraded); raid_disks 1662 drivers/md/raid1.c pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, raid_disks 1663 drivers/md/raid1.c conf->raid_disks); raid_disks 1666 drivers/md/raid1.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 1705 drivers/md/raid1.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 1707 drivers/md/raid1.c struct md_rdev *repl = conf->mirrors[conf->raid_disks + i].rdev; raid_disks 1749 drivers/md/raid1.c int last = conf->raid_disks - 1; raid_disks 1766 drivers/md/raid1.c rdev->saved_raid_disk < conf->raid_disks && raid_disks 1789 drivers/md/raid1.c p[conf->raid_disks].rdev == NULL) { raid_disks 1796 drivers/md/raid1.c rcu_assign_pointer(p[conf->raid_disks].rdev, rdev); raid_disks 1814 drivers/md/raid1.c p = conf->mirrors + conf->raid_disks + number; raid_disks 1828 drivers/md/raid1.c mddev->degraded < conf->raid_disks) { raid_disks 1842 drivers/md/raid1.c if (conf->mirrors[conf->raid_disks + number].rdev) { raid_disks 1848 drivers/md/raid1.c conf->mirrors[conf->raid_disks + number].rdev; raid_disks 1863 drivers/md/raid1.c conf->mirrors[conf->raid_disks + number].rdev = NULL; raid_disks 2029 drivers/md/raid1.c if (d == conf->raid_disks * 2) raid_disks 2044 drivers/md/raid1.c for (d = 0; d < conf->raid_disks * 2; d++) { raid_disks 2070 drivers/md/raid1.c d = conf->raid_disks * 2; raid_disks 2085 drivers/md/raid1.c d = conf->raid_disks * 2; raid_disks 2121 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 2141 drivers/md/raid1.c for (primary = 0; primary < conf->raid_disks * 2; primary++) raid_disks 2149 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 2195 drivers/md/raid1.c int disks = conf->raid_disks * 2; raid_disks 2281 drivers/md/raid1.c if (d == conf->raid_disks * 2) raid_disks 2296 drivers/md/raid1.c d = conf->raid_disks * 2; raid_disks 2314 drivers/md/raid1.c d = conf->raid_disks * 2; raid_disks 2414 drivers/md/raid1.c for (m = 0; m < conf->raid_disks * 2 ; m++) { raid_disks 2438 drivers/md/raid1.c for (m = 0; m < conf->raid_disks * 2 ; m++) raid_disks 2611 drivers/md/raid1.c for (i = conf->poolinfo->raid_disks; i--; ) { raid_disks 2730 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 2737 drivers/md/raid1.c if (i < conf->raid_disks) raid_disks 2802 drivers/md/raid1.c for (i = 0 ; i < conf->raid_disks * 2 ; i++) raid_disks 2872 drivers/md/raid1.c for (i = 0 ; i < conf->raid_disks * 2; i++) { raid_disks 2909 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2 && read_targets; i++) { raid_disks 2930 drivers/md/raid1.c static sector_t raid1_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 2971 drivers/md/raid1.c mddev->raid_disks, 2), raid_disks 2983 drivers/md/raid1.c conf->poolinfo->raid_disks = mddev->raid_disks * 2; raid_disks 2999 drivers/md/raid1.c if (disk_idx >= mddev->raid_disks raid_disks 3003 drivers/md/raid1.c disk = conf->mirrors + mddev->raid_disks + disk_idx; raid_disks 3013 drivers/md/raid1.c conf->raid_disks = mddev->raid_disks; raid_disks 3026 drivers/md/raid1.c for (i = 0; i < conf->raid_disks * 2; i++) { raid_disks 3030 drivers/md/raid1.c if (i < conf->raid_disks && raid_disks 3031 drivers/md/raid1.c disk[conf->raid_disks].rdev) { raid_disks 3038 drivers/md/raid1.c disk[conf->raid_disks].rdev; raid_disks 3039 drivers/md/raid1.c disk[conf->raid_disks].rdev = NULL; raid_disks 3126 drivers/md/raid1.c for (i = 0; i < conf->raid_disks; i++) raid_disks 3134 drivers/md/raid1.c if (conf->raid_disks - mddev->degraded < 1) { raid_disks 3139 drivers/md/raid1.c if (conf->raid_disks - mddev->degraded == 1) raid_disks 3146 drivers/md/raid1.c mdname(mddev), mddev->raid_disks - mddev->degraded, raid_disks 3147 drivers/md/raid1.c mddev->raid_disks); raid_disks 3242 drivers/md/raid1.c int cnt, raid_disks; raid_disks 3263 drivers/md/raid1.c raid_disks = mddev->raid_disks + mddev->delta_disks; raid_disks 3265 drivers/md/raid1.c if (raid_disks < conf->raid_disks) { raid_disks 3267 drivers/md/raid1.c for (d= 0; d < conf->raid_disks; d++) raid_disks 3270 drivers/md/raid1.c if (cnt > raid_disks) raid_disks 3278 drivers/md/raid1.c newpoolinfo->raid_disks = raid_disks * 2; raid_disks 3287 drivers/md/raid1.c raid_disks, 2), raid_disks 3301 drivers/md/raid1.c for (d = d2 = 0; d < conf->raid_disks; d++) { raid_disks 3320 drivers/md/raid1.c mddev->degraded += (raid_disks - conf->raid_disks); raid_disks 3322 drivers/md/raid1.c conf->raid_disks = mddev->raid_disks = raid_disks; raid_disks 3350 drivers/md/raid1.c if (mddev->level == 5 && mddev->raid_disks == 2) { raid_disks 65 drivers/md/raid1.h int raid_disks; raid_disks 73 drivers/md/raid1.h int raid_disks; raid_disks 571 drivers/md/raid10.c last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; raid_disks 575 drivers/md/raid10.c last_far_set_size += (geo->raid_disks % geo->far_set_size); raid_disks 583 drivers/md/raid10.c dev = sector_div(stripe, geo->raid_disks); raid_disks 602 drivers/md/raid10.c if ((geo->raid_disks % geo->far_set_size) && raid_disks 617 drivers/md/raid10.c if (dev >= geo->raid_disks) { raid_disks 650 drivers/md/raid10.c if (geo->raid_disks % geo->far_set_size) { raid_disks 651 drivers/md/raid10.c last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; raid_disks 656 drivers/md/raid10.c far_set_size += (geo->raid_disks % geo->far_set_size); raid_disks 679 drivers/md/raid10.c vchunk = chunk * geo->raid_disks + dev; raid_disks 862 drivers/md/raid10.c (i < conf->geo.raid_disks || i < conf->prev.raid_disks) raid_disks 1541 drivers/md/raid10.c && (conf->geo.near_copies < conf->geo.raid_disks raid_disks 1543 drivers/md/raid10.c conf->prev.raid_disks))) raid_disks 1559 drivers/md/raid10.c if (conf->geo.near_copies < conf->geo.raid_disks) raid_disks 1568 drivers/md/raid10.c if (conf->geo.far_set_size != conf->geo.raid_disks) raid_disks 1571 drivers/md/raid10.c seq_printf(seq, " [%d/%d] [", conf->geo.raid_disks, raid_disks 1572 drivers/md/raid10.c conf->geo.raid_disks - mddev->degraded); raid_disks 1574 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 1593 drivers/md/raid10.c disks = conf->prev.raid_disks; raid_disks 1596 drivers/md/raid10.c disks = conf->geo.raid_disks; raid_disks 1669 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded); raid_disks 1682 drivers/md/raid10.c pr_debug(" --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, raid_disks 1683 drivers/md/raid10.c conf->geo.raid_disks); raid_disks 1687 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 1718 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 1760 drivers/md/raid10.c int last = conf->geo.raid_disks - 1; raid_disks 1777 drivers/md/raid10.c rdev->saved_raid_disk < conf->geo.raid_disks && raid_disks 1849 drivers/md/raid10.c number < conf->geo.raid_disks && raid_disks 2792 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) raid_disks 2853 drivers/md/raid10.c chunks = conf->geo.raid_disks / conf->geo.near_copies; raid_disks 2854 drivers/md/raid10.c if (conf->geo.raid_disks % conf->geo.near_copies == 0) raid_disks 2963 drivers/md/raid10.c else for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 2978 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 2997 drivers/md/raid10.c if (chunks_skipped >= conf->geo.raid_disks) { raid_disks 3011 drivers/md/raid10.c if (conf->geo.near_copies < conf->geo.raid_disks && raid_disks 3043 drivers/md/raid10.c for (i = 0 ; i < conf->geo.raid_disks; i++) { raid_disks 3125 drivers/md/raid10.c for (j = 0; j < conf->geo.raid_disks; j++) { raid_disks 3458 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 3525 drivers/md/raid10.c raid10_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 3530 drivers/md/raid10.c if (!raid_disks) raid_disks 3531 drivers/md/raid10.c raid_disks = min(conf->geo.raid_disks, raid_disks 3532 drivers/md/raid10.c conf->prev.raid_disks); raid_disks 3538 drivers/md/raid10.c size = size * raid_disks; raid_disks 3553 drivers/md/raid10.c size = size * conf->geo.raid_disks; raid_disks 3562 drivers/md/raid10.c size = DIV_ROUND_UP_SECTOR_T(size, conf->geo.raid_disks); raid_disks 3583 drivers/md/raid10.c disks = mddev->raid_disks - mddev->delta_disks; raid_disks 3588 drivers/md/raid10.c disks = mddev->raid_disks; raid_disks 3595 drivers/md/raid10.c disks = mddev->raid_disks + mddev->delta_disks; raid_disks 3606 drivers/md/raid10.c geo->raid_disks = disks; raid_disks 3646 drivers/md/raid10.c if (copies < 2 || copies > mddev->raid_disks) { raid_disks 3658 drivers/md/raid10.c conf->mirrors = kcalloc(mddev->raid_disks + max(0, -mddev->delta_disks), raid_disks 3769 drivers/md/raid10.c if (conf->geo.raid_disks % conf->geo.near_copies) raid_disks 3770 drivers/md/raid10.c blk_queue_io_opt(mddev->queue, chunk_size * conf->geo.raid_disks); raid_disks 3773 drivers/md/raid10.c (conf->geo.raid_disks / conf->geo.near_copies)); raid_disks 3782 drivers/md/raid10.c if (disk_idx >= conf->geo.raid_disks && raid_disks 3783 drivers/md/raid10.c disk_idx >= conf->prev.raid_disks) raid_disks 3842 drivers/md/raid10.c i < conf->geo.raid_disks raid_disks 3843 drivers/md/raid10.c || i < conf->prev.raid_disks; raid_disks 3877 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded, raid_disks 3878 drivers/md/raid10.c conf->geo.raid_disks); raid_disks 3889 drivers/md/raid10.c int stripe = conf->geo.raid_disks * raid_disks 4027 drivers/md/raid10.c mddev->delta_disks = mddev->raid_disks; raid_disks 4028 drivers/md/raid10.c mddev->raid_disks *= 2; raid_disks 4109 drivers/md/raid10.c kcalloc(mddev->raid_disks + mddev->delta_disks, raid_disks 4139 drivers/md/raid10.c for (i = 0; i < conf->prev.raid_disks; i++) { raid_disks 4151 drivers/md/raid10.c if (conf->geo.raid_disks == conf->prev.raid_disks) raid_disks 4155 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { raid_disks 4165 drivers/md/raid10.c if (conf->geo.raid_disks <= conf->prev.raid_disks) raid_disks 4234 drivers/md/raid10.c sizeof(struct raid10_info)*conf->prev.raid_disks); raid_disks 4263 drivers/md/raid10.c newsize = raid10_size(mddev, 0, conf->geo.raid_disks); raid_disks 4305 drivers/md/raid10.c conf->prev.raid_disks) raid_disks 4313 drivers/md/raid10.c } else if (rdev->raid_disk >= conf->prev.raid_disks raid_disks 4326 drivers/md/raid10.c mddev->raid_disks = conf->geo.raid_disks; raid_disks 4351 drivers/md/raid10.c mddev->raid_disks = conf->geo.raid_disks; raid_disks 4373 drivers/md/raid10.c s = DIV_ROUND_UP_SECTOR_T(s, geo->raid_disks); raid_disks 4387 drivers/md/raid10.c sector_div(s, geo->raid_disks); raid_disks 4742 drivers/md/raid10.c int stripe = conf->geo.raid_disks * raid_disks 4891 drivers/md/raid10.c for (d = conf->geo.raid_disks ; raid_disks 4892 drivers/md/raid10.c d < conf->geo.raid_disks - mddev->delta_disks; raid_disks 36 drivers/md/raid10.h int raid_disks; raid_disks 408 drivers/md/raid5-cache.c (conf->raid_disks - conf->max_degraded) * (conf->group_cnt + 1)); raid_disks 3086 drivers/md/raid5-cache.c conf->raid_disks) > PAGE_SIZE) { raid_disks 3088 drivers/md/raid5-cache.c mdname(conf->mddev), conf->raid_disks); raid_disks 620 drivers/md/raid5-ppl.c int raid_disks = conf->raid_disks; raid_disks 624 drivers/md/raid5-ppl.c atomic_set(&io->pending_flushes, raid_disks); raid_disks 626 drivers/md/raid5-ppl.c for_each_set_bit(i, &log->disk_flush_bitmap, raid_disks) { raid_disks 656 drivers/md/raid5-ppl.c for (i = flushed_disks ; i < raid_disks; i++) { raid_disks 829 drivers/md/raid5-ppl.c data_disks = conf->raid_disks - conf->max_degraded; raid_disks 836 drivers/md/raid5-ppl.c data_disks = conf->raid_disks - conf->max_degraded; raid_disks 1365 drivers/md/raid5-ppl.c if (conf->raid_disks > max_disks) { raid_disks 1383 drivers/md/raid5-ppl.c ret = mempool_init(&ppl_conf->io_pool, conf->raid_disks, ppl_io_pool_alloc, raid_disks 1388 drivers/md/raid5-ppl.c ret = bioset_init(&ppl_conf->bs, conf->raid_disks, 0, BIOSET_NEED_BVECS); raid_disks 1392 drivers/md/raid5-ppl.c ret = bioset_init(&ppl_conf->flush_bs, conf->raid_disks, 0, 0); raid_disks 1396 drivers/md/raid5-ppl.c ppl_conf->count = conf->raid_disks; raid_disks 123 drivers/md/raid5.c static inline int raid6_next_disk(int disk, int raid_disks) raid_disks 126 drivers/md/raid5.c return (disk < raid_disks) ? disk : 0; raid_disks 277 drivers/md/raid5.c else if (injournal == conf->raid_disks - conf->max_degraded) { raid_disks 503 drivers/md/raid5.c sh->disks = previous ? conf->previous_raid_disks : conf->raid_disks; raid_disks 581 drivers/md/raid5.c if (conf->raid_disks >= conf->previous_raid_disks) raid_disks 585 drivers/md/raid5.c if (conf->raid_disks == conf->previous_raid_disks) raid_disks 589 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 603 drivers/md/raid5.c if (conf->raid_disks <= conf->previous_raid_disks) raid_disks 2192 drivers/md/raid5.c int devs = max(conf->raid_disks, conf->previous_raid_disks); raid_disks 2416 drivers/md/raid5.c for (i=conf->raid_disks; i < newsize; i++) raid_disks 2705 drivers/md/raid5.c conf->raid_disks - mddev->degraded); raid_disks 2727 drivers/md/raid5.c int raid_disks = previous ? conf->previous_raid_disks raid_disks 2728 drivers/md/raid5.c : conf->raid_disks; raid_disks 2729 drivers/md/raid5.c int data_disks = raid_disks - conf->max_degraded; raid_disks 2756 drivers/md/raid5.c pd_idx = data_disks - sector_div(stripe2, raid_disks); raid_disks 2761 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks); raid_disks 2766 drivers/md/raid5.c pd_idx = data_disks - sector_div(stripe2, raid_disks); raid_disks 2767 drivers/md/raid5.c *dd_idx = (pd_idx + 1 + *dd_idx) % raid_disks; raid_disks 2770 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks); raid_disks 2771 drivers/md/raid5.c *dd_idx = (pd_idx + 1 + *dd_idx) % raid_disks; raid_disks 2788 drivers/md/raid5.c pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); raid_disks 2790 drivers/md/raid5.c if (pd_idx == raid_disks-1) { raid_disks 2797 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks); raid_disks 2799 drivers/md/raid5.c if (pd_idx == raid_disks-1) { raid_disks 2806 drivers/md/raid5.c pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); raid_disks 2807 drivers/md/raid5.c qd_idx = (pd_idx + 1) % raid_disks; raid_disks 2808 drivers/md/raid5.c *dd_idx = (pd_idx + 2 + *dd_idx) % raid_disks; raid_disks 2811 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks); raid_disks 2812 drivers/md/raid5.c qd_idx = (pd_idx + 1) % raid_disks; raid_disks 2813 drivers/md/raid5.c *dd_idx = (pd_idx + 2 + *dd_idx) % raid_disks; raid_disks 2830 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks); raid_disks 2832 drivers/md/raid5.c if (pd_idx == raid_disks-1) { raid_disks 2846 drivers/md/raid5.c pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); raid_disks 2848 drivers/md/raid5.c if (pd_idx == raid_disks-1) { raid_disks 2858 drivers/md/raid5.c pd_idx = raid_disks - 1 - sector_div(stripe2, raid_disks); raid_disks 2859 drivers/md/raid5.c qd_idx = (pd_idx + raid_disks - 1) % raid_disks; raid_disks 2860 drivers/md/raid5.c *dd_idx = (pd_idx + 1 + *dd_idx) % raid_disks; raid_disks 2866 drivers/md/raid5.c pd_idx = data_disks - sector_div(stripe2, raid_disks-1); raid_disks 2869 drivers/md/raid5.c qd_idx = raid_disks - 1; raid_disks 2873 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks-1); raid_disks 2876 drivers/md/raid5.c qd_idx = raid_disks - 1; raid_disks 2880 drivers/md/raid5.c pd_idx = data_disks - sector_div(stripe2, raid_disks-1); raid_disks 2881 drivers/md/raid5.c *dd_idx = (pd_idx + 1 + *dd_idx) % (raid_disks-1); raid_disks 2882 drivers/md/raid5.c qd_idx = raid_disks - 1; raid_disks 2886 drivers/md/raid5.c pd_idx = sector_div(stripe2, raid_disks-1); raid_disks 2887 drivers/md/raid5.c *dd_idx = (pd_idx + 1 + *dd_idx) % (raid_disks-1); raid_disks 2888 drivers/md/raid5.c qd_idx = raid_disks - 1; raid_disks 2894 drivers/md/raid5.c qd_idx = raid_disks - 1; raid_disks 2918 drivers/md/raid5.c int raid_disks = sh->disks; raid_disks 2919 drivers/md/raid5.c int data_disks = raid_disks - conf->max_degraded; raid_disks 2949 drivers/md/raid5.c i += raid_disks; raid_disks 2969 drivers/md/raid5.c if (sh->pd_idx == raid_disks-1) raid_disks 2976 drivers/md/raid5.c if (sh->pd_idx == raid_disks-1) raid_disks 2981 drivers/md/raid5.c i += raid_disks; raid_disks 2997 drivers/md/raid5.c i += raid_disks; raid_disks 3339 drivers/md/raid5.c int disks = previous ? conf->previous_raid_disks : conf->raid_disks; raid_disks 3486 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 4344 drivers/md/raid5.c for (j = 0; j < conf->raid_disks; j++) raid_disks 4349 drivers/md/raid5.c if (j == conf->raid_disks) { raid_disks 4909 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) raid_disks 4974 drivers/md/raid5.c for (i = conf->raid_disks; i--; ) { raid_disks 4984 drivers/md/raid5.c sh->disks = conf->raid_disks; raid_disks 5507 drivers/md/raid5.c (conf->raid_disks - conf->max_degraded); raid_disks 5531 drivers/md/raid5.c for (d = 0; d < conf->raid_disks; d++) { raid_disks 5545 drivers/md/raid5.c for (d = 0; d < conf->raid_disks; d++) { raid_disks 5557 drivers/md/raid5.c d < conf->raid_disks - conf->max_degraded; raid_disks 5751 drivers/md/raid5.c static sector_t raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks); raid_disks 5768 drivers/md/raid5.c int raid_disks = conf->previous_raid_disks; raid_disks 5769 drivers/md/raid5.c int data_disks = raid_disks - conf->max_degraded; raid_disks 5770 drivers/md/raid5.c int new_data_disks = conf->raid_disks - conf->max_degraded; raid_disks 6097 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 6732 drivers/md/raid5.c raid5_size(struct mddev *mddev, sector_t sectors, int raid_disks) raid_disks 6738 drivers/md/raid5.c if (!raid_disks) raid_disks 6740 drivers/md/raid5.c raid_disks = min(conf->raid_disks, conf->previous_raid_disks); raid_disks 6744 drivers/md/raid5.c return sectors * (raid_disks - conf->max_degraded); raid_disks 6764 drivers/md/raid5.c max(conf->raid_disks, raid_disks 6837 drivers/md/raid5.c conf->scribble_disks = max(conf->raid_disks, raid_disks 6904 drivers/md/raid5.c if (mddev->new_level == 6 && mddev->raid_disks < 4) { raid_disks 6906 drivers/md/raid5.c mdname(mddev), mddev->raid_disks); raid_disks 6967 drivers/md/raid5.c conf->raid_disks = mddev->raid_disks; raid_disks 6969 drivers/md/raid5.c conf->previous_raid_disks = mddev->raid_disks; raid_disks 6971 drivers/md/raid5.c conf->previous_raid_disks = mddev->raid_disks - mddev->delta_disks; raid_disks 6972 drivers/md/raid5.c max_disks = max(conf->raid_disks, conf->previous_raid_disks); raid_disks 7094 drivers/md/raid5.c conf->shrinker.seeks = DEFAULT_SEEKS * conf->raid_disks * 4; raid_disks 7123 drivers/md/raid5.c static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) raid_disks 7131 drivers/md/raid5.c if (raid_disk >= raid_disks - max_degraded) raid_disks 7136 drivers/md/raid5.c raid_disk == raid_disks - 1) raid_disks 7143 drivers/md/raid5.c if (raid_disk == raid_disks - 1) raid_disks 7226 drivers/md/raid5.c old_disks = mddev->raid_disks - mddev->delta_disks; raid_disks 7236 drivers/md/raid5.c new_data_disks = mddev->raid_disks - max_degraded; raid_disks 7314 drivers/md/raid5.c for (i = 0; i < conf->raid_disks && conf->previous_raid_disks; raid_disks 7353 drivers/md/raid5.c conf->raid_disks, raid_disks 7372 drivers/md/raid5.c mdname(mddev), mddev->degraded, conf->raid_disks); raid_disks 7397 drivers/md/raid5.c mddev->raid_disks-mddev->degraded, mddev->raid_disks, raid_disks 7439 drivers/md/raid5.c (conf->raid_disks - conf->max_degraded)); raid_disks 7518 drivers/md/raid5.c seq_printf (seq, " [%d/%d] [", conf->raid_disks, conf->raid_disks - mddev->degraded); raid_disks 7520 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 7539 drivers/md/raid5.c conf->raid_disks, raid_disks 7540 drivers/md/raid5.c conf->raid_disks - conf->mddev->degraded); raid_disks 7542 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 7560 drivers/md/raid5.c for (i = 0; i < conf->raid_disks; i++) { raid_disks 7626 drivers/md/raid5.c if (number >= conf->raid_disks && raid_disks 7642 drivers/md/raid5.c number < conf->raid_disks) { raid_disks 7687 drivers/md/raid5.c int last = conf->raid_disks - 1; raid_disks 7774 drivers/md/raid5.c newsize = raid5_size(mddev, sectors, mddev->raid_disks); raid_disks 7839 drivers/md/raid5.c if (mddev->raid_disks + mddev->delta_disks < min) raid_disks 7894 drivers/md/raid5.c if (raid5_size(mddev, 0, conf->raid_disks + mddev->delta_disks) raid_disks 7904 drivers/md/raid5.c conf->previous_raid_disks = conf->raid_disks; raid_disks 7905 drivers/md/raid5.c conf->raid_disks += mddev->delta_disks; raid_disks 7965 drivers/md/raid5.c mddev->raid_disks = conf->raid_disks; raid_disks 7980 drivers/md/raid5.c mddev->raid_disks = conf->raid_disks = conf->previous_raid_disks; raid_disks 8010 drivers/md/raid5.c conf->previous_raid_disks = conf->raid_disks; raid_disks 8027 drivers/md/raid5.c int data_disks = conf->raid_disks - conf->max_degraded; raid_disks 8050 drivers/md/raid5.c for (d = conf->raid_disks ; raid_disks 8051 drivers/md/raid5.c d < conf->raid_disks - mddev->delta_disks; raid_disks 8119 drivers/md/raid5.c mddev->raid_disks += 1; raid_disks 8132 drivers/md/raid5.c if (mddev->raid_disks != 2 || raid_disks 8188 drivers/md/raid5.c mddev->raid_disks -= 1; raid_disks 8216 drivers/md/raid5.c if (mddev->raid_disks == 2) { raid_disks 8306 drivers/md/raid5.c if (mddev->raid_disks > 253) raid_disks 8308 drivers/md/raid5.c if (mddev->raid_disks < 3) raid_disks 8336 drivers/md/raid5.c mddev->raid_disks += 1; raid_disks 574 drivers/md/raid5.h int raid_disks; raid_disks 149 include/uapi/linux/raid/md_p.h __u32 raid_disks; /* 10 disks in a fully functional raid set */ raid_disks 245 include/uapi/linux/raid/md_p.h __le32 raid_disks; raid_disks 88 include/uapi/linux/raid/md_u.h int raid_disks; raid_disks 194 init/do_mounts_md.c ainfo.raid_disks =0; raid_disks 195 init/do_mounts_md.c while (devices[ainfo.raid_disks]) raid_disks 196 init/do_mounts_md.c ainfo.raid_disks++;