Lines Matching refs:raid_disks
41 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones() local
51 conf->devlist[j * raid_disks + k]->bdev); in dump_zones()
147 mddev->raid_disks), in create_strip_zones()
182 if (j >= mddev->raid_disks) { in create_strip_zones()
198 if (cnt != mddev->raid_disks) { in create_strip_zones()
200 mdname(mddev), cnt, mddev->raid_disks); in create_strip_zones()
214 dev = conf->devlist + i * mddev->raid_disks; in create_strip_zones()
314 int raid_disks = conf->strip_zone[0].nb_dev; in map_sector() local
337 return conf->devlist[(zone - conf->strip_zone)*raid_disks in map_sector()
341 static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid0_size() argument
346 WARN_ONCE(sectors || raid_disks, in raid0_size()
404 (mddev->chunk_sectors << 9) * mddev->raid_disks); in raid0_run()
609 if (rdev->raid_disk == mddev->raid_disks-1) { in raid0_takeover_raid45()
621 mddev->raid_disks--; in raid0_takeover_raid45()
648 if (mddev->raid_disks & 1) { in raid0_takeover_raid10()
653 if (mddev->degraded != (mddev->raid_disks>>1)) { in raid0_takeover_raid10()
663 mddev->delta_disks = - mddev->raid_disks / 2; in raid0_takeover_raid10()
664 mddev->raid_disks += mddev->delta_disks; in raid0_takeover_raid10()
682 if ((mddev->raid_disks - 1) != mddev->degraded) { in raid0_takeover_raid1()
707 mddev->delta_disks = 1 - mddev->raid_disks; in raid0_takeover_raid1()
708 mddev->raid_disks = 1; in raid0_takeover_raid1()