• Home
  • Raw
  • Download

Lines Matching refs:conf

31 	struct r0conf *conf = mddev->private;  in raid0_congested()  local
32 struct md_rdev **devlist = conf->devlist; in raid0_congested()
33 int raid_disks = conf->strip_zone[0].nb_dev; in raid0_congested()
56 struct r0conf *conf = mddev->private; in dump_zones() local
57 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones()
60 conf->nr_strip_zones, conf->nr_strip_zones==1?"":"s"); in dump_zones()
61 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones()
63 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones()
65 bdevname(conf->devlist[j*raid_disks in dump_zones()
69 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
73 (unsigned long long)conf->strip_zone[j].dev_start>>1, in dump_zones()
75 zone_start = conf->strip_zone[j].zone_end; in dump_zones()
89 struct r0conf *conf = kzalloc(sizeof(*conf), GFP_KERNEL); in create_strip_zones() local
92 if (!conf) in create_strip_zones()
134 conf->nr_strip_zones++; in create_strip_zones()
136 mdname(mddev), conf->nr_strip_zones); in create_strip_zones()
140 mdname(mddev), conf->nr_strip_zones); in create_strip_zones()
142 conf->strip_zone = kzalloc(sizeof(struct strip_zone)* in create_strip_zones()
143 conf->nr_strip_zones, GFP_KERNEL); in create_strip_zones()
144 if (!conf->strip_zone) in create_strip_zones()
146 conf->devlist = kzalloc(sizeof(struct md_rdev*)* in create_strip_zones()
147 conf->nr_strip_zones*mddev->raid_disks, in create_strip_zones()
149 if (!conf->devlist) in create_strip_zones()
155 zone = &conf->strip_zone[0]; in create_strip_zones()
158 dev = conf->devlist; in create_strip_zones()
199 conf->has_merge_bvec = 1; in create_strip_zones()
219 for (i = 1; i < conf->nr_strip_zones; i++) in create_strip_zones()
223 zone = conf->strip_zone + i; in create_strip_zones()
224 dev = conf->devlist + i * mddev->raid_disks; in create_strip_zones()
232 rdev = conf->devlist[j]; in create_strip_zones()
290 *private_conf = conf; in create_strip_zones()
294 kfree(conf->strip_zone); in create_strip_zones()
295 kfree(conf->devlist); in create_strip_zones()
296 kfree(conf); in create_strip_zones()
304 static struct strip_zone *find_zone(struct r0conf *conf, in find_zone() argument
308 struct strip_zone *z = conf->strip_zone; in find_zone()
311 for (i = 0; i < conf->nr_strip_zones; i++) in find_zone()
329 struct r0conf *conf = mddev->private; in map_sector() local
330 int raid_disks = conf->strip_zone[0].nb_dev; in map_sector()
353 return conf->devlist[(zone - conf->strip_zone)*raid_disks in map_sector()
370 struct r0conf *conf = mddev->private; in raid0_mergeable_bvec() local
393 if (!conf->has_merge_bvec) in raid0_mergeable_bvec()
429 struct r0conf *conf; in raid0_run() local
445 ret = create_strip_zones(mddev, &conf); in raid0_run()
448 mddev->private = conf; in raid0_run()
450 conf = mddev->private; in raid0_run()
486 struct r0conf *conf = mddev->private; in raid0_stop() local
489 kfree(conf->strip_zone); in raid0_stop()
490 kfree(conf->devlist); in raid0_stop()
491 kfree(conf); in raid0_stop()