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
68 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf()
80 if (j < 0 || j >= raid_disks || disk->rdev) { in linear_conf()
99 if (cnt != raid_disks) { in linear_conf()
110 for (i = 1; i < raid_disks; i++) in linear_conf()
126 conf->raid_disks = raid_disks; in linear_conf()
142 conf = linear_conf(mddev, mddev->raid_disks); in linear_run()
169 if (rdev->saved_raid_disk != mddev->raid_disks) in linear_add()
175 newconf = linear_conf(mddev,mddev->raid_disks+1); in linear_add()
189 mddev->raid_disks++; in linear_add()
190 WARN_ONCE(mddev->raid_disks != newconf->raid_disks, in linear_add()