Lines Matching refs:failed
3153 s->failed > conf->max_degraded && in handle_failed_stripe()
3289 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3290 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
3304 if (!s->failed || !s->to_write) in need_this_block()
3316 for (i = 0; i < s->failed && i < 2; i++) { in need_this_block()
3340 for (i = 0; i < s->failed && i < 2; i++) { in need_this_block()
3365 (s->failed && (disk_idx == s->failed_num[0] || in fetch_block()
3386 } else if (s->uptodate == disks-2 && s->failed >= 2) { in fetch_block()
3572 s->failed == 0)) { in handle_stripe_dirtying()
3698 if (s->failed == 0) { in handle_parity_checks5()
3736 if (s->failed) in handle_parity_checks5()
3786 BUG_ON(s->failed > 2); in handle_parity_checks6()
3797 if (s->failed == s->q_failed) { in handle_parity_checks6()
3804 if (!s->q_failed && s->failed < 2) { in handle_parity_checks6()
3832 BUG_ON(s->failed != 2); in handle_parity_checks6()
3845 if (s->failed == 2) { in handle_parity_checks6()
3851 if (s->failed >= 1) { in handle_parity_checks6()
3886 if (!s->failed) in handle_parity_checks6()
4168 if (s->failed < 2) in analyse_stripe()
4169 s->failed_num[s->failed] = i; in analyse_stripe()
4170 s->failed++; in analyse_stripe()
4363 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
4368 if (s.failed > conf->max_degraded || s.log_failed) { in handle_stripe()
4405 if (s.failed > 1) in handle_stripe()
4409 s.failed == 0)) in handle_stripe()
4422 s.p_failed = (s.failed >= 1 && s.failed_num[0] == sh->pd_idx) in handle_stripe()
4423 || (s.failed >= 2 && s.failed_num[1] == sh->pd_idx); in handle_stripe()
4425 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
4426 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
4445 || (conf->level == 6 && s.to_write && s.failed) in handle_stripe()
4502 if (s.failed <= conf->max_degraded && !conf->mddev->ro) in handle_stripe()
4503 for (i = 0; i < s.failed; i++) { in handle_stripe()