Searched refs:delta_disks (Results 1 – 7 of 7) sorted by relevance
238 int delta_disks; member731 mddev->delta_disks = 0; in rs_set_new()754 rs->delta_disks = 0; in raid_set_alloc()764 rs->md.delta_disks = 0; in raid_set_alloc()1396 rs->delta_disks = value; in parse_raid_params()1625 int delta_disks; in rs_set_dev_and_array_sectors() local1631 delta_disks = mddev->delta_disks; in rs_set_dev_and_array_sectors()1634 delta_disks = rs->delta_disks; in rs_set_dev_and_array_sectors()1643 delta_disks < 0) { in rs_set_dev_and_array_sectors()1652 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()[all …]
693 mddev->delta_disks = -1; in raid0_takeover_raid45()734 mddev->delta_disks = - mddev->raid_disks / 2; in raid0_takeover_raid10()735 mddev->raid_disks += mddev->delta_disks; in raid0_takeover_raid10()778 mddev->delta_disks = 1 - mddev->raid_disks; in raid0_takeover_raid1()
1341 mddev->delta_disks = sb->delta_disks; in super_90_validate()1345 if (mddev->delta_disks < 0) in super_90_validate()1349 mddev->delta_disks = 0; in super_90_validate()1486 sb->delta_disks = mddev->delta_disks; in super_90_sync()1880 mddev->delta_disks = le32_to_cpu(sb->delta_disks); in super_1_validate()1884 if (mddev->delta_disks < 0 || in super_1_validate()1885 (mddev->delta_disks == 0 && in super_1_validate()1891 mddev->delta_disks = 0; in super_1_validate()2094 sb->delta_disks = cpu_to_le32(mddev->delta_disks); in super_1_sync()2097 if (mddev->delta_disks == 0 && in super_1_sync()[all …]
3976 disks = mddev->raid_disks - mddev->delta_disks; in setup_geo()3988 disks = mddev->raid_disks + mddev->delta_disks; in setup_geo()4065 conf->mirrors = kcalloc(mddev->raid_disks + max(0, -mddev->delta_disks), in setup_conf()4409 mddev->delta_disks = mddev->raid_disks; in raid10_takeover_raid0()4488 if (mddev->delta_disks > 0) { in raid10_check_reshape()4491 kcalloc(mddev->raid_disks + mddev->delta_disks, in raid10_check_reshape()4609 if (spares < mddev->delta_disks) in raid10_start_reshape()4640 if (mddev->delta_disks && mddev->bitmap) { in raid10_start_reshape()4681 if (mddev->delta_disks > 0) { in raid10_start_reshape()5252 if (mddev->delta_disks > 0) { in raid10_finish_reshape()[all …]
7265 conf->previous_raid_disks = mddev->raid_disks - mddev->delta_disks; in setup_conf()7536 old_disks = mddev->raid_disks - mddev->delta_disks; in raid5_run()7559 if (mddev->delta_disks == 0) { in raid5_run()7593 BUG_ON(mddev->delta_disks != 0); in raid5_run()8141 if (mddev->delta_disks == 0 && in check_reshape()8147 if (mddev->delta_disks < 0 && mddev->reshape_position == MaxSector) { in check_reshape()8156 if (mddev->raid_disks + mddev->delta_disks < min) in check_reshape()8164 mddev->delta_disks > 0) in check_reshape()8167 + max(0, mddev->delta_disks), in check_reshape()8173 if (conf->previous_raid_disks + mddev->delta_disks <= conf->pool_size) in check_reshape()[all …]
349 int delta_disks, new_level, new_layout; member
3279 raid_disks = mddev->raid_disks + mddev->delta_disks; in raid1_reshape()3339 mddev->delta_disks = 0; in raid1_reshape()