Lines Matching refs:test_bit

255 			if (!test_bit(In_sync, &rs->dev[i].rdev.flags) &&  in dev_parms()
282 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in dev_parms()
388 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) || in validate_raid_redundancy()
428 !test_bit(In_sync, &rs->dev[d].rdev.flags)) && in validate_raid_redundancy()
454 !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()
1041 if (!test_bit(FirstUse, &rdev->flags)) { in super_validate()
1050 if (test_bit(Faulty, &rdev->flags)) { in super_validate()
1334 if (test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) in decipher_sync_action()
1337 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in decipher_sync_action()
1338 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) { in decipher_sync_action()
1339 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) in decipher_sync_action()
1342 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { in decipher_sync_action()
1343 if (!test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) in decipher_sync_action()
1345 else if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) in decipher_sync_action()
1350 if (test_bit(MD_RECOVERY_RECOVER, &mddev->recovery)) in decipher_sync_action()
1370 if (test_bit(MD_RECOVERY_RUNNING, &rs->md.recovery)) in raid_status()
1381 } else if (test_bit(MD_RECOVERY_REQUESTED, &rs->md.recovery)) { in raid_status()
1396 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1407 if (test_bit(Faulty, &rs->dev[i].rdev.flags)) in raid_status()
1410 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1450 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1453 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) in raid_status()
1473 !test_bit(In_sync, &rs->dev[i].rdev.flags)) in raid_status()
1488 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) in raid_status()
1553 } else if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || in raid_message()
1554 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) in raid_message()
1636 if (test_bit(Faulty, &r->flags) && r->sb_page && in attempt_restore_of_faulty_devices()