Lines Matching refs:delta_disks
7528 conf->previous_raid_disks = mddev->raid_disks - mddev->delta_disks; in setup_conf()
7803 old_disks = mddev->raid_disks - mddev->delta_disks; in raid5_run()
7826 if (mddev->delta_disks == 0) { in raid5_run()
7860 BUG_ON(mddev->delta_disks != 0); in raid5_run()
8420 if (mddev->delta_disks == 0 && in check_reshape()
8426 if (mddev->delta_disks < 0 && mddev->reshape_position == MaxSector) { in check_reshape()
8435 if (mddev->raid_disks + mddev->delta_disks < min) in check_reshape()
8443 mddev->delta_disks > 0) in check_reshape()
8446 + max(0, mddev->delta_disks), in check_reshape()
8452 if (conf->previous_raid_disks + mddev->delta_disks <= conf->pool_size) in check_reshape()
8455 + mddev->delta_disks)); in check_reshape()
8480 if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded) in raid5_start_reshape()
8490 if (raid5_size(mddev, 0, conf->raid_disks + mddev->delta_disks) in raid5_start_reshape()
8501 conf->raid_disks += mddev->delta_disks; in raid5_start_reshape()
8533 if (mddev->delta_disks >= 0) { in raid5_start_reshape()
8634 if (mddev->delta_disks <= 0) { in raid5_finish_reshape()
8640 d < conf->raid_disks - mddev->delta_disks; in raid5_finish_reshape()
8655 mddev->delta_disks = 0; in raid5_finish_reshape()
8714 mddev->delta_disks = 1; in raid45_takeover_raid0()
8781 mddev->delta_disks = -1; in raid5_takeover_raid6()
8929 mddev->delta_disks = 1; in raid6_takeover()