Lines Matching refs:raid_disks

237 	int raid_disks;  member
730 mddev->raid_disks = rs->raid_disks; in rs_set_new()
753 rs->raid_disks = raid_devs; in raid_set_alloc()
759 rs->md.raid_disks = raid_devs; in raid_set_alloc()
792 for (i = 0; i < rs->raid_disks; i++) { in raid_set_free()
832 for (i = 0; i < rs->raid_disks; i++) { in parse_dev_params()
1004 unsigned int rebuilds_per_group = 0, copies, raid_disks; in validate_raid_redundancy() local
1007 for (i = 0; i < rs->raid_disks; i++) in validate_raid_redundancy()
1017 if (rebuild_cnt >= rs->md.raid_disks) in validate_raid_redundancy()
1050 raid_disks = min(rs->raid_disks, rs->md.raid_disks); in validate_raid_redundancy()
1052 for (i = 0; i < raid_disks; i++) { in validate_raid_redundancy()
1075 group_size = (raid_disks / copies); in validate_raid_redundancy()
1076 last_group_start = (raid_disks / group_size) - 1; in validate_raid_redundancy()
1078 for (i = 0; i < raid_disks; i++) { in validate_raid_redundancy()
1178 for (i = 0; i < rs->raid_disks; i++) { in parse_raid_params()
1311 if (!__within_range(value, 0, rs->raid_disks - 1)) { in parse_raid_params()
1332 if (!__within_range(value, 0, rs->md.raid_disks - 1)) { in parse_raid_params()
1449 if (!__within_range(value, 2, rs->md.raid_disks)) { in parse_raid_params()
1475 if (write_mostly >= rs->md.raid_disks) { in parse_raid_params()
1498 if (raid10_copies > rs->md.raid_disks) { in parse_raid_params()
1576 return rs->md.raid_disks - rs->raid_type->parity_devs; in mddev_data_stripes()
1582 return rs->raid_disks - rs->raid_type->parity_devs; in rs_data_stripes()
1593 for (i = 0; i < rs->raid_disks; i++) { in __rdev_sectors()
1733 mddev->raid_disks == 1) in rs_check_takeover()
1738 !(rs->raid_disks % mddev->raid_disks)) in rs_check_takeover()
1744 mddev->raid_disks > 1) in rs_check_takeover()
1760 !(mddev->raid_disks % near_copies)) { in rs_check_takeover()
1761 mddev->raid_disks /= near_copies; in rs_check_takeover()
1762 mddev->delta_disks = mddev->raid_disks; in rs_check_takeover()
1776 max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks) in rs_check_takeover()
1781 mddev->raid_disks == 2) in rs_check_takeover()
1788 mddev->raid_disks == 2) { in rs_check_takeover()
1795 mddev->raid_disks == 1) in rs_check_takeover()
1810 mddev->raid_disks == 2) in rs_check_takeover()
1832 mddev->raid_disks == 2) in rs_check_takeover()
1902 mddev->raid_disks != rs->raid_disks; in rs_reshape_requested()
2099 for (i = 0; i < rs->raid_disks; i++) in super_sync()
2111 sb->num_devices = cpu_to_le32(mddev->raid_disks); in super_sync()
2230 mddev->raid_disks = le32_to_cpu(sb->num_devices); in super_init_validation()
2293 mddev->raid_disks, mddev->raid_disks + rs->delta_disks); in super_init_validation()
2346 if (new_devs == rs->raid_disks || !rebuilds) { in super_init_validation()
2348 if (new_devs == rs->raid_disks) { in super_init_validation()
2401 if (mddev->raid_disks % __raid10_near_copies(mddev->layout) || in super_init_validation()
2402 rs->raid_disks % rs->raid10_copies) { in super_init_validation()
2712 unsigned int d = mddev->raid_disks = rs->raid_disks; in rs_setup_takeover()
2726 rs->raid_disks); in rs_setup_takeover()
2759 if (rs->raid_disks != mddev->raid_disks && in rs_prepare_reshape()
2769 if (rs->raid_disks % rs->raid10_copies) { in rs_prepare_reshape()
2793 mddev->raid_disks = rs->raid_disks; in rs_prepare_reshape()
2804 } else if (mddev->raid_disks < rs->raid_disks) in rs_prepare_reshape()
2844 cur_raid_devs = mddev->raid_disks; in rs_setup_reshape()
2878 for (d = cur_raid_devs; d < rs->raid_disks; d++) { in rs_setup_reshape()
2967 for (i = 0; i < rs->raid_disks; i++) { in configure_discard_support()
3530 DMEMIT("%s %d ", rt->name, mddev->raid_disks); in raid_status()
3544 for (i = 0; i < rs->raid_disks; i++) in raid_status()
3606 for (i = 0; i < rs->raid_disks; i++) { in raid_status()
3624 for (i = 0; i < rs->raid_disks; i++) in raid_status()
3637 for (i = 0; i < rs->raid_disks; i++) in raid_status()
3668 DMEMIT(" %d", rs->raid_disks); in raid_status()
3669 for (i = 0; i < rs->raid_disks; i++) in raid_status()
3680 DMEMIT(",raid_type=%s,raid_disks=%d", rt->name, mddev->raid_disks); in raid_status()
3688 for (i = 0; i < rs->raid_disks; i++) { in raid_status()
3773 for (i = 0; !r && i < rs->raid_disks; i++) { in raid_iterate_devices()
3824 for (i = 0; i < rs->raid_disks; i++) { in attempt_restore_of_faulty_devices()