Lines Matching refs:max_degraded

286 				else if (injournal == conf->raid_disks - conf->max_degraded) {  in do_release_stripe()
756 return degraded > conf->max_degraded; in has_failed()
869 BUG_ON(sh->overwrite_disks > (sh->disks - sh->raid_conf->max_degraded)); in is_full_stripe_write()
870 return sh->overwrite_disks == (sh->disks - sh->raid_conf->max_degraded); in is_full_stripe_write()
2822 else if (conf->mddev->degraded >= conf->max_degraded) { in raid5_end_read_request()
3009 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_sector()
3199 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_blocknr()
3417 if (s->locked + conf->max_degraded == disks) in schedule_reconstruction()
3646 stripe * (disks - conf->max_degraded) in stripe_set_idx()
3729 s->failed > conf->max_degraded && in handle_failed_stripe()
5073 if (s.failed > conf->max_degraded || in handle_stripe()
5250 if (s.failed <= conf->max_degraded && !conf->mddev->ro) in handle_stripe()
5809 (conf->raid_disks - conf->max_degraded); in make_discard_request()
5859 d < conf->raid_disks - conf->max_degraded; in make_discard_request()
6217 int data_disks = raid_disks - conf->max_degraded; in reshape_request()
6218 int new_data_disks = conf->raid_disks - conf->max_degraded; in reshape_request()
6516 if (mddev->degraded >= conf->max_degraded && in raid5_sync_request()
7295 return sectors * (raid_disks - conf->max_degraded); in raid5_size()
7611 conf->max_degraded = 2; in setup_conf()
7617 conf->max_degraded = 1; in setup_conf()
7684 static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) in only_parity() argument
7688 if (raid_disk < max_degraded) in only_parity()
7692 if (raid_disk >= raid_disks - max_degraded) in only_parity()
7713 (conf->raid_disks - conf->max_degraded)); in raid5_set_io_opt()
7786 int max_degraded = (mddev->level == 6 ? 2 : 1); in raid5_run() local
7813 new_data_disks = mddev->raid_disks - max_degraded; in raid5_run()
7823 sector_div(here_old, chunk_sectors * (old_disks-max_degraded)); in raid5_run()
7937 conf->max_degraded)) in raid5_run()
7943 conf->max_degraded)) in raid5_run()
8013 int data_disks = conf->previous_raid_disks - conf->max_degraded; in raid5_run()
8480 if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded) in raid5_start_reshape()