• Home
  • Raw
  • Download

Lines Matching refs: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()
57 struct linear_conf *conf; in linear_congested() local
61 conf = rcu_dereference(mddev->private); in linear_congested()
63 for (i = 0; i < conf->raid_disks && !ret ; i++) { in linear_congested()
64 struct request_queue *q = bdev_get_queue(conf->disks[i].rdev->bdev); in linear_congested()
74 struct linear_conf *conf; in linear_size() local
77 conf = mddev->private; in linear_size()
80 array_sectors = conf->array_sectors; in linear_size()
87 struct linear_conf *conf; in linear_conf() local
92 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf()
93 if (!conf) in linear_conf()
97 conf->array_sectors = 0; in linear_conf()
101 struct dev_info *disk = conf->disks + j; in linear_conf()
120 conf->array_sectors += rdev->sectors; in linear_conf()
140 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
143 conf->disks[i].end_sector = in linear_conf()
144 conf->disks[i-1].end_sector + in linear_conf()
145 conf->disks[i].rdev->sectors; in linear_conf()
158 conf->raid_disks = raid_disks; in linear_conf()
160 return conf; in linear_conf()
163 kfree(conf); in linear_conf()
169 struct linear_conf *conf; in linear_run() local
174 conf = linear_conf(mddev, mddev->raid_disks); in linear_run()
176 if (!conf) in linear_run()
178 mddev->private = conf; in linear_run()
183 kfree(conf); in linear_run()
235 struct linear_conf *conf = priv; in linear_free() local
237 kfree(conf); in linear_free()