Lines Matching refs:test_bit
257 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) && in dev_parms()
284 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in dev_parms()
390 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) || in validate_raid_redundancy()
430 !test_bit(In_sync, &rs->dev[d].rdev.flags)) && in validate_raid_redundancy()
456 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && in validate_raid_redundancy()
819 test_bit(Faulty, &(rs->dev[i].rdev.flags))) in super_sync()
875 (!test_bit(In_sync, &rdev->flags) && !rdev->recovery_offset)) { in super_load()
964 if (!test_bit(In_sync, &r->flags)) { in super_init_validation()
968 } else if (test_bit(FirstUse, &r->flags)) in super_init_validation()
1004 if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) { in super_init_validation()
1044 if (!test_bit(FirstUse, &rdev->flags)) { in super_validate()
1053 if (test_bit(Faulty, &rdev->flags)) { in super_validate()
1340 if (test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) in decipher_sync_action()
1343 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in decipher_sync_action()
1344 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) { in decipher_sync_action()
1345 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in decipher_sync_action()
1348 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in decipher_sync_action()
1349 if (!test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) in decipher_sync_action()
1351 else if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) in decipher_sync_action()
1356 if (test_bit(MD_RECOVERY_RECOVER, &mddev->recovery)) in decipher_sync_action()
1377 if (test_bit(MD_RECOVERY_RUNNING, &rs->md.recovery)) in raid_status()
1388 } else if (test_bit(MD_RECOVERY_REQUESTED, &rs->md.recovery)) { in raid_status()
1403 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1419 if (test_bit(Faulty, &rs->dev[i].rdev.flags)) in raid_status()
1422 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1462 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1465 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) in raid_status()
1485 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1500 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) in raid_status()
1565 } else if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in raid_message()
1566 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) in raid_message()
1648 if (test_bit(Faulty, &r->flags) && r->sb_page && in attempt_restore_of_faulty_devices()