• Home
  • Raw
  • Download

Lines Matching refs:raid_disks

670 	if (!mddev->raid_disks && list_empty(&mddev->disks) &&  in mddev_put()
1233 if (sb->raid_disks <= 0) in super_90_load()
1318 if (mddev->raid_disks == 0) { in super_90_validate()
1329 mddev->raid_disks = sb->raid_disks; in super_90_validate()
1439 int next_spare = mddev->raid_disks; in super_90_sync()
1472 sb->raid_disks = mddev->raid_disks; in super_90_sync()
1556 for (i=0 ; i < mddev->raid_disks ; i++) { in super_90_sync()
1832 if (mddev->raid_disks == 0) { in super_1_validate()
1842 mddev->raid_disks = le32_to_cpu(sb->raid_disks); in super_1_validate()
2051 sb->raid_disks = cpu_to_le32(mddev->raid_disks); in super_1_sync()
2481 choice = mddev->raid_disks; in bind_rdev_to_array()
2504 if (mddev->raid_disks) in bind_rdev_to_array()
2626 mddev->raid_disks = 0; in export_array()
2714 (mddev->raid_disks != le32_to_cpu(sb->raid_disks)) || in does_sb_need_changing()
3277 if (slot >= rdev->mddev->raid_disks && in slot_store()
3278 slot >= rdev->mddev->raid_disks + rdev->mddev->delta_disks) in slot_store()
3298 if (slot >= rdev->mddev->raid_disks && in slot_store()
3299 slot >= rdev->mddev->raid_disks + rdev->mddev->delta_disks) in slot_store()
3873 (mddev->raid_disks - min(0, mddev->delta_disks)) && in analyze_sbs()
4070 mddev->raid_disks -= mddev->delta_disks; in level_store()
4136 if (rdev->new_raid_disk >= mddev->raid_disks) in level_store()
4230 if (mddev->raid_disks == 0) in raid_disks_show()
4234 return sprintf(page, "%d (%d)\n", mddev->raid_disks, in raid_disks_show()
4235 mddev->raid_disks - mddev->delta_disks); in raid_disks_show()
4236 return sprintf(page, "%d\n", mddev->raid_disks); in raid_disks_show()
4239 static int update_raid_disks(struct mddev *mddev, int raid_disks);
4258 int olddisks = mddev->raid_disks - mddev->delta_disks; in raid_disks_store()
4271 mddev->raid_disks = n; in raid_disks_store()
4274 mddev->raid_disks = n; in raid_disks_store()
4280 __ATTR(raid_disks, S_IRUGO|S_IWUSR, raid_disks_show, raid_disks_store);
4463 mddev->raid_disks == 0 && in array_state_show()
5866 if (!mddev->raid_disks) { in md_run()
6214 mddev->raid_disks = 0; in md_clean()
6578 else if (mddev->raid_disks || mddev->major_version in autorun_devices()
6655 info.raid_disks = mddev->raid_disks; in get_array_info()
6769 if (!mddev->raid_disks) { in md_add_new_disk()
6823 info->raid_disk < mddev->raid_disks) { in md_add_new_disk()
6929 if (info->raid_disk < mddev->raid_disks) in md_add_new_disk()
6934 if (rdev->raid_disk < mddev->raid_disks) in md_add_new_disk()
7173 if (info->raid_disks == 0) { in md_set_array_info()
7201 mddev->raid_disks = info->raid_disks; in md_set_array_info()
7300 static int update_raid_disks(struct mddev *mddev, int raid_disks) in update_raid_disks() argument
7309 if (raid_disks <= 0 || in update_raid_disks()
7310 (mddev->max_disks && raid_disks >= mddev->max_disks)) in update_raid_disks()
7319 if (mddev->raid_disks < raid_disks && in update_raid_disks()
7322 if (mddev->raid_disks > raid_disks && in update_raid_disks()
7327 mddev->delta_disks = raid_disks - mddev->raid_disks; in update_raid_disks()
7374 if (mddev->raid_disks != info->raid_disks) in update_array_info()
7403 if (mddev->raid_disks != info->raid_disks) in update_array_info()
7404 rv = update_raid_disks(mddev, info->raid_disks); in update_array_info()
7583 if (!mddev->raid_disks && !mddev->external) in md_ioctl()
7590 if (!mddev->raid_disks && !mddev->external) in md_ioctl()
7662 if (mddev->raid_disks) { in md_ioctl()
7680 if ((!mddev->raid_disks && !mddev->external) in md_ioctl()
7826 if (!mddev->raid_disks && !mddev->external) { in md_set_read_only()
8293 if (mddev->pers || mddev->raid_disks || !list_empty(&mddev->disks)) { in md_seq_show()
9495 mddev->degraded != mddev->raid_disks) { in md_reap_sync_thread()
9766 if (mddev->raid_disks != le32_to_cpu(sb->raid_disks)) { in check_sb_changes()
9767 ret = update_raid_disks(mddev, le32_to_cpu(sb->raid_disks)); in check_sb_changes()