degraded 1741 drivers/md/dm-raid.c if (rs->md.degraded) { degraded 1811 drivers/md/dm-raid.c mddev->degraded = 1; degraded 2033 drivers/md/dm-raid.c else if (mddev->degraded) degraded 2806 drivers/md/dm-raid.c mddev->degraded = rs->delta_disks < 0 ? -rs->delta_disks : rs->delta_disks; degraded 1485 drivers/md/md-bitmap.c if (success && !bitmap->mddev->degraded && degraded 1514 drivers/md/md-bitmap.c int degraded) degraded 1531 drivers/md/md-bitmap.c if (!degraded) { /* don't set/clear bits if degraded */ degraded 1542 drivers/md/md-bitmap.c int degraded) degraded 1557 drivers/md/md-bitmap.c &blocks1, degraded); degraded 1928 drivers/md/md-bitmap.c if (mddev->degraded == 0 degraded 2571 drivers/md/md-bitmap.c if (mddev->degraded) degraded 258 drivers/md/md-bitmap.h int md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded); degraded 144 drivers/md/md-multipath.c conf->raid_disks - mddev->degraded); degraded 184 drivers/md/md-multipath.c if (conf->raid_disks - mddev->degraded <= 1) { degraded 200 drivers/md/md-multipath.c mddev->degraded++; degraded 208 drivers/md/md-multipath.c conf->raid_disks - mddev->degraded); degraded 221 drivers/md/md-multipath.c pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, degraded 257 drivers/md/md-multipath.c mddev->degraded--; degraded 425 drivers/md/md-multipath.c mddev->degraded = conf->raid_disks - working_disks; degraded 438 drivers/md/md-multipath.c mdname(mddev), conf->raid_disks - mddev->degraded, degraded 2631 drivers/md/md.c if (mddev->degraded) degraded 2767 drivers/md/md.c if (mddev->degraded) degraded 3908 drivers/md/md.c mddev->degraded = 0; degraded 4825 drivers/md/md.c return sprintf(page, "%d\n", mddev->degraded); degraded 4827 drivers/md/md.c static struct md_sysfs_entry md_degraded = __ATTR_RO(degraded); degraded 5800 drivers/md/md.c if (mddev->degraded) degraded 5834 drivers/md/md.c if (mddev->degraded && !mddev->ro) degraded 5990 drivers/md/md.c mddev->degraded = 0; degraded 7778 drivers/md/md.c if (mddev->degraded) degraded 9152 drivers/md/md.c mddev->degraded != mddev->raid_disks) { degraded 9171 drivers/md/md.c if (!mddev->degraded) degraded 401 drivers/md/md.h int degraded; /* whether md should consider degraded 651 drivers/md/raid0.c if (mddev->degraded != 1) { degraded 654 drivers/md/raid0.c mddev->degraded); degraded 704 drivers/md/raid0.c if (mddev->degraded != (mddev->raid_disks>>1)) { degraded 716 drivers/md/raid0.c mddev->degraded = 0; degraded 733 drivers/md/raid0.c if ((mddev->raid_disks - 1) != mddev->degraded) { degraded 367 drivers/md/raid1.c if (r1_bio->mddev->degraded == conf->raid_disks || degraded 368 drivers/md/raid1.c (r1_bio->mddev->degraded == conf->raid_disks-1 && degraded 1530 drivers/md/raid1.c conf->raid_disks - mddev->degraded > 1) degraded 1600 drivers/md/raid1.c conf->raid_disks - mddev->degraded); degraded 1625 drivers/md/raid1.c && (conf->raid_disks - mddev->degraded) == 1) { degraded 1638 drivers/md/raid1.c mddev->degraded++; degraded 1650 drivers/md/raid1.c mdname(mddev), conf->raid_disks - mddev->degraded); degraded 1662 drivers/md/raid1.c pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, degraded 1735 drivers/md/raid1.c mddev->degraded -= count; degraded 1828 drivers/md/raid1.c mddev->degraded < conf->raid_disks) { degraded 2546 drivers/md/raid1.c if (mddev->degraded) degraded 3125 drivers/md/raid1.c mddev->degraded = 0; degraded 3130 drivers/md/raid1.c mddev->degraded++; degraded 3134 drivers/md/raid1.c if (conf->raid_disks - mddev->degraded < 1) { degraded 3139 drivers/md/raid1.c if (conf->raid_disks - mddev->degraded == 1) degraded 3146 drivers/md/raid1.c mdname(mddev), mddev->raid_disks - mddev->degraded, degraded 3320 drivers/md/raid1.c mddev->degraded += (raid_disks - conf->raid_disks); degraded 1572 drivers/md/raid10.c conf->geo.raid_disks - mddev->degraded); degraded 1656 drivers/md/raid10.c mddev->degraded++; degraded 1669 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded); degraded 1682 drivers/md/raid10.c pr_debug(" --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, degraded 1747 drivers/md/raid10.c mddev->degraded -= count; degraded 2737 drivers/md/raid10.c if (mddev->degraded) degraded 3311 drivers/md/raid10.c &sync_blocks, mddev->degraded) && degraded 3840 drivers/md/raid10.c mddev->degraded = 0; degraded 3858 drivers/md/raid10.c mddev->degraded++; degraded 3877 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded, degraded 4015 drivers/md/raid10.c if (mddev->degraded > 0) { degraded 4133 drivers/md/raid10.c int degraded, degraded2; degraded 4137 drivers/md/raid10.c degraded = 0; degraded 4142 drivers/md/raid10.c degraded++; degraded 4148 drivers/md/raid10.c degraded++; degraded 4152 drivers/md/raid10.c return degraded; degraded 4170 drivers/md/raid10.c if (degraded2 > degraded) degraded 4172 drivers/md/raid10.c return degraded; degraded 4324 drivers/md/raid10.c mddev->degraded = calc_degraded(conf); degraded 558 drivers/md/raid5.c int degraded, degraded2; degraded 562 drivers/md/raid5.c degraded = 0; degraded 568 drivers/md/raid5.c degraded++; degraded 582 drivers/md/raid5.c degraded++; degraded 586 drivers/md/raid5.c return degraded; degraded 607 drivers/md/raid5.c if (degraded2 > degraded) degraded 609 drivers/md/raid5.c return degraded; degraded 614 drivers/md/raid5.c int degraded; degraded 617 drivers/md/raid5.c return conf->mddev->degraded > conf->max_degraded; degraded 619 drivers/md/raid5.c degraded = raid5_calc_degraded(conf); degraded 620 drivers/md/raid5.c if (degraded > conf->max_degraded) degraded 2537 drivers/md/raid5.c else if (conf->mddev->degraded >= conf->max_degraded) { degraded 2681 drivers/md/raid5.c mddev->degraded == conf->max_degraded) { degraded 2693 drivers/md/raid5.c mddev->degraded = raid5_calc_degraded(conf); degraded 2705 drivers/md/raid5.c conf->raid_disks - mddev->degraded); degraded 5613 drivers/md/raid5.c if (rw == READ && mddev->degraded == 0 && degraded 6066 drivers/md/raid5.c if (mddev->degraded >= conf->max_degraded && degraded 7368 drivers/md/raid5.c mddev->degraded = raid5_calc_degraded(conf); degraded 7372 drivers/md/raid5.c mdname(mddev), mddev->degraded, conf->raid_disks); degraded 7380 drivers/md/raid5.c if (mddev->degraded > dirty_parity_disks && degraded 7397 drivers/md/raid5.c mddev->raid_disks-mddev->degraded, mddev->raid_disks, degraded 7518 drivers/md/raid5.c seq_printf (seq, " [%d/%d] [", conf->raid_disks, conf->raid_disks - mddev->degraded); degraded 7540 drivers/md/raid5.c conf->raid_disks - conf->mddev->degraded); degraded 7589 drivers/md/raid5.c mddev->degraded = raid5_calc_degraded(conf); degraded 7884 drivers/md/raid5.c if (spares - mddev->degraded < mddev->delta_disks - conf->max_degraded) degraded 7962 drivers/md/raid5.c mddev->degraded = raid5_calc_degraded(conf); degraded 8048 drivers/md/raid5.c mddev->degraded = raid5_calc_degraded(conf); degraded 8133 drivers/md/raid5.c mddev->degraded > 1) degraded 8304 drivers/md/raid5.c if (mddev->degraded > 1)