max_degraded      407 drivers/md/raid5-cache.c 		((conf->max_degraded + 1) * atomic_read(&log->stripe_in_journal_count) +
max_degraded      408 drivers/md/raid5-cache.c 		 (conf->raid_disks - conf->max_degraded) * (conf->group_cnt + 1));
max_degraded     1843 drivers/md/raid5-cache.c 	ctx->meta_total_blocks += BLOCK_SECTORS * conf->max_degraded;
max_degraded     2035 drivers/md/raid5-cache.c 			if (conf->max_degraded == 2 && /* q for RAID 6 */
max_degraded      829 drivers/md/raid5-ppl.c 			data_disks = conf->raid_disks - conf->max_degraded;
max_degraded      836 drivers/md/raid5-ppl.c 		data_disks = conf->raid_disks - conf->max_degraded;
max_degraded      277 drivers/md/raid5.c 				else if (injournal == conf->raid_disks - conf->max_degraded) {
max_degraded      617 drivers/md/raid5.c 		return conf->mddev->degraded > conf->max_degraded;
max_degraded      620 drivers/md/raid5.c 	if (degraded > conf->max_degraded)
max_degraded      701 drivers/md/raid5.c 	BUG_ON(sh->overwrite_disks > (sh->disks - sh->raid_conf->max_degraded));
max_degraded      702 drivers/md/raid5.c 	return sh->overwrite_disks == (sh->disks - sh->raid_conf->max_degraded);
max_degraded     2537 drivers/md/raid5.c 		else if (conf->mddev->degraded >= conf->max_degraded) {
max_degraded     2681 drivers/md/raid5.c 	    mddev->degraded == conf->max_degraded) {
max_degraded     2729 drivers/md/raid5.c 	int data_disks = raid_disks - conf->max_degraded;
max_degraded     2919 drivers/md/raid5.c 	int data_disks = raid_disks - conf->max_degraded;
max_degraded     3137 drivers/md/raid5.c 		if (s->locked + conf->max_degraded == disks)
max_degraded     3342 drivers/md/raid5.c 			     stripe * (disks - conf->max_degraded)
max_degraded     3425 drivers/md/raid5.c 		    s->failed > conf->max_degraded &&
max_degraded     4755 drivers/md/raid5.c 	if (s.failed > conf->max_degraded ||
max_degraded     4932 drivers/md/raid5.c 	if (s.failed <= conf->max_degraded && !conf->mddev->ro)
max_degraded     5507 drivers/md/raid5.c 		(conf->raid_disks - conf->max_degraded);
max_degraded     5557 drivers/md/raid5.c 			     d < conf->raid_disks - conf->max_degraded;
max_degraded     5769 drivers/md/raid5.c 	int data_disks = raid_disks - conf->max_degraded;
max_degraded     5770 drivers/md/raid5.c 	int new_data_disks = conf->raid_disks - conf->max_degraded;
max_degraded     6066 drivers/md/raid5.c 	if (mddev->degraded >= conf->max_degraded &&
max_degraded     6744 drivers/md/raid5.c 	return sectors * (raid_disks - conf->max_degraded);
max_degraded     7051 drivers/md/raid5.c 		conf->max_degraded = 2;
max_degraded     7057 drivers/md/raid5.c 		conf->max_degraded = 1;
max_degraded     7123 drivers/md/raid5.c static int only_parity(int raid_disk, int algo, int raid_disks, int max_degraded)
max_degraded     7127 drivers/md/raid5.c 		if (raid_disk < max_degraded)
max_degraded     7131 drivers/md/raid5.c 		if (raid_disk >= raid_disks - max_degraded)
max_degraded     7211 drivers/md/raid5.c 		int max_degraded = (mddev->level == 6 ? 2 : 1);
max_degraded     7236 drivers/md/raid5.c 		new_data_disks = mddev->raid_disks - max_degraded;
max_degraded     7245 drivers/md/raid5.c 		sector_div(here_old, chunk_sectors * (old_disks-max_degraded));
max_degraded     7354 drivers/md/raid5.c 					 conf->max_degraded))
max_degraded     7360 drivers/md/raid5.c 				 conf->max_degraded))
max_degraded     7430 drivers/md/raid5.c 		int data_disks = conf->previous_raid_disks - conf->max_degraded;
max_degraded     7439 drivers/md/raid5.c 				 (conf->raid_disks - conf->max_degraded));
max_degraded     7884 drivers/md/raid5.c 	if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded)
max_degraded     8027 drivers/md/raid5.c 			int data_disks = conf->raid_disks - conf->max_degraded;
max_degraded      573 drivers/md/raid5.h 	int			max_degraded;