Lines Matching refs:raid_disks
30 hi = mddev->raid_disks - 1; in which_dev()
49 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
55 WARN_ONCE(sectors || raid_disks, in linear_size()
62 static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) in linear_conf() argument
69 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf()
81 if (j < 0 || j >= raid_disks || disk->rdev) { in linear_conf()
103 if (cnt != raid_disks) { in linear_conf()
119 for (i = 1; i < raid_disks; i++) in linear_conf()
135 conf->raid_disks = raid_disks; in linear_conf()
151 conf = linear_conf(mddev, mddev->raid_disks); in linear_run()
178 if (rdev->saved_raid_disk != mddev->raid_disks) in linear_add()
184 newconf = linear_conf(mddev,mddev->raid_disks+1); in linear_add()
198 mddev->raid_disks++; in linear_add()
199 WARN_ONCE(mddev->raid_disks != newconf->raid_disks, in linear_add()