/kernel/linux/linux-5.10/drivers/md/ |
H A D | md-multipath.c | 38 if (rdev && test_bit(In_sync, &rdev->flags) && in multipath_map() 148 seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in multipath_status() 175 if (test_and_clear_bit(In_sync, &rdev->flags)) { in multipath_error() 237 set_bit(In_sync, &rdev->flags); in multipath_add_disk() 259 if (test_bit(In_sync, &rdev->flags) || in multipath_remove_disk()
|
H A D | raid10.c | 505 if (test_bit(In_sync, &rdev->flags) && in raid10_end_write_request() 767 if (!test_bit(In_sync, &rdev->flags) && in read_balance() 1576 seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid10_status() 1609 test_bit(In_sync, &rdev->flags)) in _enough() 1647 if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev in raid10_error() 1655 if (test_and_clear_bit(In_sync, &rdev->flags)) in raid10_error() 1692 i, !test_bit(In_sync, &rdev->flags), in print_conf() 1723 && !test_and_set_bit(In_sync, &tmp->replacement->flags)) { in raid10_spare_active() 1726 || !test_and_clear_bit(In_sync, &tmp->rdev->flags)) in raid10_spare_active() 1741 && !test_and_set_bit(In_sync, in raid10_spare_active() [all...] |
H A D | dm-raid.c | 871 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) && in parse_dev_params() 898 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in parse_dev_params() 1010 ((!test_bit(In_sync, &rs->dev[i].rdev.flags) || in validate_raid_redundancy() 1057 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && in validate_raid_redundancy() 1083 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && in validate_raid_redundancy() 1163 * We set each individual device as In_sync with a completed in parse_raid_params() 1180 set_bit(In_sync, &rs->dev[i].rdev.flags); in parse_raid_params() 1323 clear_bit(In_sync, &rd->rdev.flags); in parse_raid_params() 2181 * 2) Device specified for rebuild (!In_sync w/ offset == 0) in super_load() 2184 (!test_bit(In_sync, in super_load() [all...] |
H A D | raid1.c | 387 test_bit(In_sync, &rdev->flags))) in raid1_end_read_request() 509 if (test_bit(In_sync, &rdev->flags) && in raid1_end_write_request() 646 if (!test_bit(In_sync, &rdev->flags) && in read_balance() 1588 rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid1_status() 1607 if (test_bit(In_sync, &rdev->flags) && !mddev->fail_last_dev in raid1_error() 1620 if (test_and_clear_bit(In_sync, &rdev->flags)) in raid1_error() 1654 i, !test_bit(In_sync, &rdev->flags), in print_conf() 1685 * which expects 'In_sync' flags and ->degraded to be consistent. in raid1_spare_active() 1695 && !test_and_set_bit(In_sync, &repl->flags)) { in raid1_spare_active() 1698 !test_and_clear_bit(In_sync, in raid1_spare_active() [all...] |
H A D | md.c | 1319 clear_bit(In_sync, &rdev->flags); in super_90_validate() 1416 set_bit(In_sync, &rdev->flags); in super_90_validate() 1433 set_bit(In_sync, &rdev->flags); in super_90_validate() 1516 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync() 1546 if (test_bit(In_sync, &rdev2->flags)) in super_90_sync() 1833 clear_bit(In_sync, &rdev->flags); in super_1_validate() 2014 set_bit(In_sync, &rdev->flags); in super_1_validate() 2026 set_bit(In_sync, &rdev->flags); in super_1_validate() 2079 !test_bit(In_sync, &rdev->flags)) { in super_1_sync() 2186 else if (test_bit(In_sync, in super_1_sync() [all...] |
H A D | raid5.c | 646 else if (test_bit(In_sync, &rdev->flags)) in raid5_calc_degraded() 672 else if (test_bit(In_sync, &rdev->flags)) in raid5_calc_degraded() 2766 if (set_bad && test_bit(In_sync, &rdev->flags) in raid5_end_read_request() 2781 && test_bit(In_sync, &rdev->flags) in raid5_end_read_request() 2885 clear_bit(In_sync, &rdev->flags); in raid5_error() 3561 if (rdev && test_bit(In_sync, &rdev->flags) && in handle_failed_stripe() 3689 && !test_bit(In_sync, &rdev->flags) in handle_failed_sync() 3696 && !test_bit(In_sync, &rdev->flags) in handle_failed_sync() 3718 && !test_bit(In_sync, &rdev->flags) in want_replace() 4685 } else if (test_bit(In_sync, in analyse_stripe() [all...] |
H A D | md.h | 144 In_sync, /* device is in_sync with rest of array */ enumerator 145 Bitmap_sync, /* ..actually, not quite In_sync. Need a
|
H A D | raid5-ppl.c | 896 if (!rdev || (!test_bit(In_sync, &rdev->flags) && in ppl_recover_entry()
|
H A D | md-bitmap.c | 152 if (! test_bit(In_sync, &rdev->flags) in read_sb_page() 175 * nr_pending is 0 and In_sync is clear, the entries we return will in next_active_rdev()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md-multipath.c | 38 if (rdev && test_bit(In_sync, &rdev->flags) && in multipath_map() 145 seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in multipath_status() 171 if (test_and_clear_bit(In_sync, &rdev->flags)) { in multipath_error() 232 set_bit(In_sync, &rdev->flags); in multipath_add_disk() 254 if (test_bit(In_sync, &rdev->flags) || in multipath_remove_disk()
|
H A D | raid10.c | 531 if (test_bit(In_sync, &rdev->flags) && in raid10_end_write_request() 793 if (!test_bit(In_sync, &rdev->flags) && in read_balance() 1959 seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid10_status() 1992 test_bit(In_sync, &rdev->flags)) in _enough() 2039 if (test_bit(In_sync, &rdev->flags) && !enough(conf, rdev->raid_disk)) { in raid10_error() 2047 if (test_and_clear_bit(In_sync, &rdev->flags)) in raid10_error() 2081 i, !test_bit(In_sync, &rdev->flags), in print_conf() 2112 && !test_and_set_bit(In_sync, &tmp->replacement->flags)) { in raid10_spare_active() 2115 || !test_and_clear_bit(In_sync, &tmp->rdev->flags)) in raid10_spare_active() 2130 && !test_and_set_bit(In_sync, in raid10_spare_active() [all...] |
H A D | dm-raid.c | 871 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) && in parse_dev_params() 898 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in parse_dev_params() 1010 ((!test_bit(In_sync, &rs->dev[i].rdev.flags) || in validate_raid_redundancy() 1057 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && in validate_raid_redundancy() 1083 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && in validate_raid_redundancy() 1163 * We set each individual device as In_sync with a completed in parse_raid_params() 1180 set_bit(In_sync, &rs->dev[i].rdev.flags); in parse_raid_params() 1323 clear_bit(In_sync, &rd->rdev.flags); in parse_raid_params() 2182 * 2) Device specified for rebuild (!In_sync w/ offset == 0) in super_load() 2185 (!test_bit(In_sync, in super_load() [all...] |
H A D | raid1.c | 392 test_bit(In_sync, &rdev->flags))) in raid1_end_read_request() 513 if (test_bit(In_sync, &rdev->flags) && in raid1_end_write_request() 650 if (!test_bit(In_sync, &rdev->flags) && in read_balance() 1625 rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); in raid1_status() 1654 if (test_bit(In_sync, &rdev->flags) && in raid1_error() 1665 if (test_and_clear_bit(In_sync, &rdev->flags)) in raid1_error() 1698 i, !test_bit(In_sync, &rdev->flags), in print_conf() 1729 * which expects 'In_sync' flags and ->degraded to be consistent. in raid1_spare_active() 1739 && !test_and_set_bit(In_sync, &repl->flags)) { in raid1_spare_active() 1742 !test_and_clear_bit(In_sync, in raid1_spare_active() [all...] |
H A D | md.c | 1278 clear_bit(In_sync, &rdev->flags); in super_90_validate() 1375 set_bit(In_sync, &rdev->flags); in super_90_validate() 1392 set_bit(In_sync, &rdev->flags); in super_90_validate() 1475 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync() 1505 if (test_bit(In_sync, &rdev2->flags)) in super_90_sync() 1789 clear_bit(In_sync, &rdev->flags); in super_1_validate() 1970 set_bit(In_sync, &rdev->flags); in super_1_validate() 1982 set_bit(In_sync, &rdev->flags); in super_1_validate() 2035 !test_bit(In_sync, &rdev->flags)) { in super_1_sync() 2142 else if (test_bit(In_sync, in super_1_sync() [all...] |
H A D | raid5.c | 703 else if (test_bit(In_sync, &rdev->flags)) in raid5_calc_degraded() 729 else if (test_bit(In_sync, &rdev->flags)) in raid5_calc_degraded() 2856 if (set_bad && test_bit(In_sync, &rdev->flags) in raid5_end_read_request() 2871 && test_bit(In_sync, &rdev->flags) in raid5_end_read_request() 2973 clear_bit(In_sync, &rdev->flags); in raid5_error() 3673 if (rdev && test_bit(In_sync, &rdev->flags) && in handle_failed_stripe() 3801 && !test_bit(In_sync, &rdev->flags) in handle_failed_sync() 3808 && !test_bit(In_sync, &rdev->flags) in handle_failed_sync() 3830 && !test_bit(In_sync, &rdev->flags) in want_replace() 4798 } else if (test_bit(In_sync, in analyse_stripe() [all...] |
H A D | md.h | 142 In_sync, /* device is in_sync with rest of array */ enumerator 143 Bitmap_sync, /* ..actually, not quite In_sync. Need a
|
H A D | raid5-ppl.c | 888 if (!rdev || (!test_bit(In_sync, &rdev->flags) && in ppl_recover_entry()
|
H A D | md-bitmap.c | 155 if (!test_bit(In_sync, &rdev->flags) || in read_sb_page() 172 * nr_pending is 0 and In_sync is clear, the entries we return will in next_active_rdev()
|