Lines Matching refs:strip_zone
41 int raid_disks = conf->strip_zone[0].nb_dev;
49 for (k = 0; k < conf->strip_zone[j].nb_dev; k++)
54 zone_size = conf->strip_zone[j].zone_end - zone_start;
57 (unsigned long long)conf->strip_zone[j].dev_start>>1,
59 zone_start = conf->strip_zone[j].zone_end;
68 struct strip_zone *zone;
140 conf->strip_zone = kcalloc(conf->nr_strip_zones,
141 sizeof(struct strip_zone),
143 if (!conf->strip_zone)
155 zone = &conf->strip_zone[0];
213 zone = conf->strip_zone + i;
257 if (conf->nr_strip_zones == 1 || conf->strip_zone[1].nb_dev == 1) {
275 sector_t first_sector = conf->strip_zone[i-1].zone_end;
278 zone = conf->strip_zone + i;
290 kfree(conf->strip_zone);
300 static struct strip_zone *find_zone(struct r0conf *conf,
304 struct strip_zone *z = conf->strip_zone;
320 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone,
326 int raid_disks = conf->strip_zone[0].nb_dev;
349 return conf->devlist[(zone - conf->strip_zone)*raid_disks
370 kfree(conf->strip_zone);
451 struct strip_zone *zone;
478 if (zone != conf->strip_zone)
490 if ((conf->layout == RAID0_ORIG_LAYOUT) && (zone != conf->strip_zone)) {
539 rdev = conf->devlist[(zone - conf->strip_zone) *
540 conf->strip_zone[0].nb_dev + disk];
551 struct strip_zone *zone;