Lines Matching refs:strip_zone

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