Lines Matching full:conf

27 	struct linear_conf *conf;  in which_dev()  local
31 conf = mddev->private; in which_dev()
40 if (sector < conf->disks[mid].end_sector) in which_dev()
46 return conf->disks + lo; in which_dev()
51 struct linear_conf *conf; in linear_size() local
54 conf = mddev->private; in linear_size()
57 array_sectors = conf->array_sectors; in linear_size()
64 struct linear_conf *conf; in linear_conf() local
68 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf()
69 if (!conf) in linear_conf()
73 conf->array_sectors = 0; in linear_conf()
77 struct dev_info *disk = conf->disks + j; in linear_conf()
96 conf->array_sectors += rdev->sectors; in linear_conf()
108 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
111 conf->disks[i].end_sector = in linear_conf()
112 conf->disks[i-1].end_sector + in linear_conf()
113 conf->disks[i].rdev->sectors; in linear_conf()
116 * conf->raid_disks is copy of mddev->raid_disks. The reason to in linear_conf()
119 * conf->disks[] when it is updated in linear_add() and used to in linear_conf()
120 * iterate old conf->disks[] earray in linear_congested(). in linear_conf()
121 * Here conf->raid_disks is always consitent with number of in linear_conf()
122 * pointers in conf->disks[] array, and mddev->private is updated in linear_conf()
126 conf->raid_disks = raid_disks; in linear_conf()
128 return conf; in linear_conf()
131 kfree(conf); in linear_conf()
137 struct linear_conf *conf; in linear_run() local
142 conf = linear_conf(mddev, mddev->raid_disks); in linear_run()
144 if (!conf) in linear_run()
146 mddev->private = conf; in linear_run()
151 kfree(conf); in linear_run()
202 struct linear_conf *conf = priv; in linear_free() local
204 kfree(conf); in linear_free()