Home
last modified time | relevance | path

Searched refs:degraded (Results 1 – 10 of 10) sorted by relevance

/drivers/md/
Dmd-multipath.c144 conf->raid_disks - mddev->degraded); in multipath_status()
162 if (conf->raid_disks - mddev->degraded <= 1) { in multipath_error()
178 mddev->degraded++; in multipath_error()
186 conf->raid_disks - mddev->degraded); in multipath_error()
199 pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, in print_multipath_conf()
235 mddev->degraded--; in multipath_add_disk()
403 mddev->degraded = conf->raid_disks - working_disks; in multipath_run()
416 mdname(mddev), conf->raid_disks - mddev->degraded, in multipath_run()
Draid0.c671 if (mddev->degraded != 1) { in raid0_takeover_raid45()
674 mddev->degraded); in raid0_takeover_raid45()
724 if (mddev->degraded != (mddev->raid_disks>>1)) { in raid0_takeover_raid10()
736 mddev->degraded = 0; in raid0_takeover_raid10()
753 if ((mddev->raid_disks - 1) != mddev->degraded) { in raid0_takeover_raid1()
Draid1.c387 if (r1_bio->mddev->degraded == conf->raid_disks || in raid1_end_read_request()
388 (r1_bio->mddev->degraded == conf->raid_disks-1 && in raid1_end_read_request()
1534 conf->raid_disks - mddev->degraded > 1) in raid1_write_request()
1603 conf->raid_disks - mddev->degraded); in raid1_status()
1639 (conf->raid_disks - mddev->degraded) == 1) { in raid1_error()
1650 mddev->degraded++; in raid1_error()
1662 mdname(mddev), conf->raid_disks - mddev->degraded); in raid1_error()
1674 pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, in print_conf()
1747 mddev->degraded -= count; in raid1_spare_active()
1843 mddev->degraded < conf->raid_disks) { in raid1_remove_disk()
[all …]
Draid10.c1951 conf->geo.raid_disks - mddev->degraded); in raid10_status()
2045 mddev->degraded++; in raid10_error()
2056 mdname(mddev), conf->geo.raid_disks - mddev->degraded); in raid10_error()
2069 pr_debug(" --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, in print_conf()
2134 mddev->degraded -= count; in raid10_spare_active()
3134 if (mddev->degraded) in raid10d()
3704 &sync_blocks, mddev->degraded) && in raid10_sync_request()
4246 mddev->degraded = 0; in raid10_run()
4264 mddev->degraded++; in raid10_run()
4283 mdname(mddev), conf->geo.raid_disks - mddev->degraded, in raid10_run()
[all …]
Dmd-bitmap.h258 int md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded);
Draid5.c636 int degraded, degraded2; in raid5_calc_degraded() local
640 degraded = 0; in raid5_calc_degraded()
646 degraded++; in raid5_calc_degraded()
660 degraded++; in raid5_calc_degraded()
664 return degraded; in raid5_calc_degraded()
685 if (degraded2 > degraded) in raid5_calc_degraded()
687 return degraded; in raid5_calc_degraded()
692 int degraded = conf->mddev->degraded; in has_failed() local
698 degraded = raid5_calc_degraded(conf); in has_failed()
700 return degraded > conf->max_degraded; in has_failed()
[all …]
Dmd-bitmap.c1484 if (success && !bitmap->mddev->degraded && in md_bitmap_endwrite()
1513 int degraded) in __bitmap_start_sync() argument
1530 if (!degraded) { /* don't set/clear bits if degraded */ in __bitmap_start_sync()
1541 int degraded) in md_bitmap_start_sync() argument
1556 &blocks1, degraded); in md_bitmap_start_sync()
1929 if (mddev->degraded == 0 in md_bitmap_load()
2605 if (mddev->degraded) in can_clear_store()
Dmd.h418 int degraded; /* whether md should consider member
Ddm-raid.c1719 if (rs->md.degraded) { in rs_check_takeover()
1789 mddev->degraded = 1; in rs_check_takeover()
2018 else if (mddev->degraded) in rs_check_reshape()
2789 mddev->degraded = rs->delta_disks < 0 ? -rs->delta_disks : rs->delta_disks; in rs_prepare_reshape()
Dmd.c2805 if (mddev->degraded) in md_update_sb()
2941 if (mddev->degraded) in add_bound_rdev()
4095 mddev->degraded = 0; in level_store()
5047 return sprintf(page, "%d\n", mddev->degraded); in degraded_show()
5049 static struct md_sysfs_entry md_degraded = __ATTR_RO(degraded);
6064 if (mddev->degraded) in md_run()
6099 if (mddev->degraded && md_is_rdwr(mddev)) in md_run()
6255 mddev->degraded = 0; in md_clean()
8050 if (mddev->degraded && !test_bit(MD_BROKEN, &mddev->flags)) in md_error()
9505 mddev->degraded != mddev->raid_disks) { in md_reap_sync_thread()
[all …]