Home
last modified time | relevance | path

Searched refs:max_degraded (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/
H A Draid5.c277 else if (injournal == conf->raid_disks - conf->max_degraded) { in do_release_stripe()
699 return degraded > conf->max_degraded; in has_failed()
778 BUG_ON(sh->overwrite_disks > (sh->disks - sh->raid_conf->max_degraded)); in is_full_stripe_write()
779 return sh->overwrite_disks == (sh->disks - sh->raid_conf->max_degraded); in is_full_stripe_write()
2739 else if (conf->mddev->degraded >= conf->max_degraded) { in raid5_end_read_request()
2928 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_sector()
3118 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_blocknr()
3257 * operation, we only need (conf->max_degraded + 1) pages per stripe.
3336 if (s->locked + conf->max_degraded == disks) in schedule_reconstruction()
3541 stripe * (disks - conf->max_degraded) in stripe_set_idx()
7403 only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) only_parity() argument
7497 int max_degraded = (mddev->level == 6 ? 2 : 1); raid5_run() local
[all...]
H A Draid5.h569 int max_degraded; member
H A Draid5-cache.c385 * already passed 1, flushing it requires at most (conf->max_degraded + 1)
391 * (stripe_in_journal_count - group_cnt - 1) * (max_degraded + 1) +
394 * (stripe_in_journal_count) * (max_degraded + 1) +
395 * (group_cnt + 1) * (raid_disks - max_degraded)
405 ((conf->max_degraded + 1) * atomic_read(&log->stripe_in_journal_count) + in r5c_log_required_to_flush_cache()
406 (conf->raid_disks - conf->max_degraded) * (conf->group_cnt + 1)); in r5c_log_required_to_flush_cache()
1841 ctx->meta_total_blocks += BLOCK_SECTORS * conf->max_degraded; in r5l_recovery_load_parity()
2033 if (conf->max_degraded == 2 && /* q for RAID 6 */ in r5l_recovery_verify_data_checksum_for_mb()
H A Draid5-ppl.c829 data_disks = conf->raid_disks - conf->max_degraded; in ppl_recover_entry()
836 data_disks = conf->raid_disks - conf->max_degraded; in ppl_recover_entry()
/kernel/linux/linux-6.6/drivers/md/
H A Draid5.c286 else if (injournal == conf->raid_disks - conf->max_degraded) {
756 return degraded > conf->max_degraded; in has_failed()
876 BUG_ON(sh->overwrite_disks > (sh->disks - sh->raid_conf->max_degraded)); in is_full_stripe_write()
877 return sh->overwrite_disks == (sh->disks - sh->raid_conf->max_degraded); in is_full_stripe_write()
2829 else if (conf->mddev->degraded >= conf->max_degraded) { in raid5_end_read_request()
3016 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_sector()
3206 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_blocknr()
3345 * operation, we only need (conf->max_degraded + 1) pages per stripe.
3424 if (s->locked + conf->max_degraded == disks) in schedule_reconstruction()
3653 stripe * (disks - conf->max_degraded) in stripe_set_idx()
7747 only_parity(int raid_disk, int algo, int raid_disks, int max_degraded) only_parity() argument
7840 int max_degraded = (mddev->level == 6 ? 2 : 1); raid5_run() local
[all...]
H A Draid5.h581 int max_degraded; member
H A Draid5-cache.c385 * already passed 1, flushing it requires at most (conf->max_degraded + 1)
391 * (stripe_in_journal_count - group_cnt - 1) * (max_degraded + 1) +
394 * (stripe_in_journal_count) * (max_degraded + 1) +
395 * (group_cnt + 1) * (raid_disks - max_degraded)
405 ((conf->max_degraded + 1) * atomic_read(&log->stripe_in_journal_count) + in r5c_log_required_to_flush_cache()
406 (conf->raid_disks - conf->max_degraded) * (conf->group_cnt + 1)); in r5c_log_required_to_flush_cache()
1834 ctx->meta_total_blocks += BLOCK_SECTORS * conf->max_degraded; in r5l_recovery_load_parity()
2027 if (conf->max_degraded == 2 && /* q for RAID 6 */ in r5l_recovery_verify_data_checksum_for_mb()
H A Draid5-ppl.c819 data_disks = conf->raid_disks - conf->max_degraded; in ppl_recover_entry()
826 data_disks = conf->raid_disks - conf->max_degraded; in ppl_recover_entry()

Completed in 29 milliseconds