Lines Matching refs:strip_zone
42 int raid_disks = conf->strip_zone[0].nb_dev;
50 for (k = 0; k < conf->strip_zone[j].nb_dev; k++)
56 zone_size = conf->strip_zone[j].zone_end - zone_start;
59 (unsigned long long)conf->strip_zone[j].dev_start>>1,
61 zone_start = conf->strip_zone[j].zone_end;
70 struct strip_zone *zone;
144 conf->strip_zone = kcalloc(conf->nr_strip_zones,
145 sizeof(struct strip_zone),
147 if (!conf->strip_zone)
159 zone = &conf->strip_zone[0];
217 zone = conf->strip_zone + i;
261 if (conf->nr_strip_zones == 1 || conf->strip_zone[1].nb_dev == 1) {
279 sector_t first_sector = conf->strip_zone[i-1].zone_end;
282 zone = conf->strip_zone + i;
294 kfree(conf->strip_zone);
304 static struct strip_zone *find_zone(struct r0conf *conf,
308 struct strip_zone *z = conf->strip_zone;
324 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone,
330 int raid_disks = conf->strip_zone[0].nb_dev;
353 return conf->devlist[(zone - conf->strip_zone)*raid_disks
437 kfree(conf->strip_zone);
459 struct strip_zone *zone;
486 if (zone != conf->strip_zone)
498 if ((conf->layout == RAID0_ORIG_LAYOUT) && (zone != conf->strip_zone)) {
548 rdev = conf->devlist[(zone - conf->strip_zone) *
549 conf->strip_zone[0].nb_dev + disk];
569 struct strip_zone *zone;