Lines Matching refs:degraded

692 	int degraded, degraded2;  in raid5_calc_degraded()  local
696 degraded = 0; in raid5_calc_degraded()
702 degraded++; in raid5_calc_degraded()
716 degraded++; in raid5_calc_degraded()
720 return degraded; in raid5_calc_degraded()
741 if (degraded2 > degraded) in raid5_calc_degraded()
743 return degraded; in raid5_calc_degraded()
748 int degraded = conf->mddev->degraded; in has_failed() local
754 degraded = raid5_calc_degraded(conf); in has_failed()
756 return degraded > conf->max_degraded; in has_failed()
2822 else if (conf->mddev->degraded >= conf->max_degraded) { in raid5_end_read_request()
2967 mddev->degraded = raid5_calc_degraded(conf); in raid5_error()
2974 mdname(mddev), mddev->degraded, conf->raid_disks); in raid5_error()
2977 mdname(mddev), conf->raid_disks - mddev->degraded); in raid5_error()
6116 if (rw == READ && mddev->degraded == 0 && in raid5_make_request()
6516 if (mddev->degraded >= conf->max_degraded && in raid5_sync_request()
7951 mddev->degraded = raid5_calc_degraded(conf); in raid5_run()
7955 mdname(mddev), mddev->degraded, conf->raid_disks); in raid5_run()
7963 if (mddev->degraded > dirty_parity_disks && in raid5_run()
7980 mddev->raid_disks-mddev->degraded, mddev->raid_disks, in raid5_run()
8101 seq_printf (seq, " [%d/%d] [", conf->raid_disks, conf->raid_disks - mddev->degraded); in raid5_status()
8123 conf->raid_disks - conf->mddev->degraded); in print_raid5_conf()
8175 mddev->degraded = raid5_calc_degraded(conf); in raid5_spare_active()
8480 if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded) in raid5_start_reshape()
8558 mddev->degraded = raid5_calc_degraded(conf); in raid5_start_reshape()
8637 mddev->degraded = raid5_calc_degraded(conf); in raid5_finish_reshape()
8727 mddev->degraded > 1) in raid5_takeover_raid1()
8898 if (mddev->degraded > 1) in raid6_takeover()