strip_zone
conf->strip_zone = kzalloc_objs(struct strip_zone, conf->nr_strip_zones);
if (!conf->strip_zone)
zone = &conf->strip_zone[0];
zone = conf->strip_zone + i;
if (conf->nr_strip_zones == 1 || conf->strip_zone[1].nb_dev == 1) {
sector_t first_sector = conf->strip_zone[i-1].zone_end;
zone = conf->strip_zone + i;
kfree(conf->strip_zone);
static struct strip_zone *find_zone(struct r0conf *conf,
struct strip_zone *z = conf->strip_zone;
static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone,
int raid_disks = conf->strip_zone[0].nb_dev;
return conf->devlist[(zone - conf->strip_zone)*raid_disks
kfree(conf->strip_zone);
int raid_disks = conf->strip_zone[0].nb_dev;
struct strip_zone *zone;
if (zone != conf->strip_zone)
if ((conf->layout == RAID0_ORIG_LAYOUT) && (zone != conf->strip_zone)) {
for (k = 0; k < conf->strip_zone[j].nb_dev; k++)
rdev = conf->devlist[(zone - conf->strip_zone) *
conf->strip_zone[0].nb_dev + disk];
struct strip_zone *zone;
zone_size = conf->strip_zone[j].zone_end - zone_start;
(unsigned long long)conf->strip_zone[j].dev_start>>1,
zone_start = conf->strip_zone[j].zone_end;
struct strip_zone *zone;
struct strip_zone *strip_zone;
raid0_conf->strip_zone->zone_end,
raid0_conf->strip_zone->nb_dev);
sectors = raid0_conf->strip_zone[0].zone_end;
sector_div(sectors, raid0_conf->strip_zone[0].nb_dev);