In_sync
((!test_bit(In_sync, &rs->dev[i].rdev.flags) ||
!test_bit(In_sync, &rs->dev[i].rdev.flags)) &&
!test_bit(In_sync, &rs->dev[i].rdev.flags)) &&
set_bit(In_sync, &rs->dev[i].rdev.flags);
clear_bit(In_sync, &rd->rdev.flags);
(!test_bit(In_sync, &rdev->flags) && !rdev->recovery_offset)) {
if (!test_bit(In_sync, &r->flags)) {
set_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags); /* Mandatory for recovery */
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags)))
!test_bit(In_sync, &rdev->flags)) {
clear_bit(In_sync, &r->flags); /* Mandatory for hot remove. */
clear_bit(In_sync, &r->flags);
if (!test_bit(In_sync, &rs->dev[i].rdev.flags) &&
if (!test_bit(In_sync, &rs->dev[i].rdev.flags))
if (!test_bit(In_sync, &rdev->flags) ||
!test_bit(In_sync, &rdev->flags) &&
clear_bit(In_sync, &rdev->flags);
set_bit(In_sync, &rdev->flags);
int is_active = test_bit(In_sync, &rdev2->flags);
if (test_bit(In_sync, &rdev2->flags))
clear_bit(In_sync, &rdev->flags);
set_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags)) {
else if (test_bit(In_sync, &rdev2->flags))
!test_bit(In_sync, &rdev->flags) &&
if (test_bit(In_sync, &flags))
!test_bit(In_sync, &flags))
set_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
if (test_bit(In_sync, &rdev->flags))
clear_bit(In_sync, &rdev->flags);
set_bit(In_sync, &rdev->flags);
if (test_bit(In_sync, &rdev->flags) ||
set_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags) &&
if (test_bit(In_sync, &rdev->flags))
else if (test_bit(In_sync, &rdev->flags)) {
clear_bit(In_sync, &rdev->flags); /* just to be sure */
set_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags))
clear_bit(In_sync, &recover_rdev->flags);
if (!test_bit(In_sync, &rdev->flags))
!test_bit(In_sync, &rdev->flags) &&
rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
if (test_bit(In_sync, &rdev->flags) &&
if (test_and_clear_bit(In_sync, &rdev->flags))
i, !test_bit(In_sync, &rdev->flags),
&& !test_and_set_bit(In_sync, &repl->flags)) {
!test_and_clear_bit(In_sync, &rdev->flags))
&& !test_and_set_bit(In_sync, &rdev->flags)) {
if (!rdev || test_bit(In_sync, &rdev->flags) ||
clear_bit(In_sync, &rdev->flags);
(test_bit(In_sync, &rdev->flags) ||
} else if (!test_bit(In_sync, &rdev->flags)) {
} else if (!test_bit(In_sync, &disk->rdev->flags))
!test_bit(In_sync, &disk->rdev->flags)) {
!test_bit(In_sync, &conf->mirrors[i].rdev->flags) ||
test_bit(In_sync, &rdev->flags)))
if (test_bit(In_sync, &rdev->flags) &&
return !test_bit(In_sync, &rdev->flags) &&
seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
test_bit(In_sync, &rdev->flags))
if (test_bit(In_sync, &rdev->flags) && !enough(conf, rdev->raid_disk)) {
if (test_and_clear_bit(In_sync, &rdev->flags))
i, !test_bit(In_sync, &rdev->flags),
&& !test_and_set_bit(In_sync, &tmp->replacement->flags)) {
|| !test_and_clear_bit(In_sync, &tmp->rdev->flags))
&& !test_and_set_bit(In_sync, &tmp->rdev->flags)) {
clear_bit(In_sync, &rdev->flags);
if (test_bit(In_sync, &rdev->flags) ||
test_bit(In_sync, &rdev->flags) &&
!test_bit(In_sync, &rdev->flags))
!test_bit(In_sync, &rdev->flags))
test_bit(In_sync, &mrdev->flags)))
!test_bit(In_sync, &rdev->flags))
!test_bit(In_sync, &mrdev->flags))
test_bit(In_sync,
!test_bit(In_sync, &disk->rdev->flags)) {
!test_bit(In_sync, &disk->replacement->flags) &&
else if (!test_bit(In_sync, &rdev->flags))
else if (!test_bit(In_sync, &rdev->flags)) {
if (!test_bit(In_sync, &rdev->flags)
set_bit(In_sync, &rdev->flags);
set_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags))
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
if (test_bit(In_sync, &rdev->flags) &&
if (!test_bit(In_sync, &rdev->flags) &&
if (!rdev || (!test_bit(In_sync, &rdev->flags) &&
if (set_bad && test_bit(In_sync, &rdev->flags)
if (!(set_bad && test_bit(In_sync, &rdev->flags)))
clear_bit(In_sync, &rdev->flags);
if (rdev && test_bit(In_sync, &rdev->flags) &&
&& !test_bit(In_sync, &rdev->flags)
&& !test_bit(In_sync, &rdev->flags)
&& !test_bit(In_sync, &rdev->flags)
} else if (test_bit(In_sync, &rdev->flags))
!(test_bit(In_sync, &rdev->flags) ||
!test_bit(In_sync, &rdev->flags) &&
!test_bit(In_sync, &rdev->flags) &&
else if (test_bit(In_sync, &rdev->flags))
else if (test_bit(In_sync, &rdev->flags))
if (test_bit(In_sync, &rdev->flags)) {
if (test_bit(In_sync, &rdev->flags))
seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
&& !test_and_set_bit(In_sync, &replacement->flags)) {
|| !test_and_clear_bit(In_sync, &rdev->flags))
&& !test_and_set_bit(In_sync, &rdev->flags)) {
clear_bit(In_sync, &rdev->flags);
if (test_bit(In_sync, &rdev->flags) ||
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);
if (!test_bit(In_sync, &rdev->flags)
set_bit(In_sync, &rdev->flags);
set_bit(In_sync, &rdev->flags);
!test_bit(In_sync, &rdev->flags))
clear_bit(In_sync, &rdev->flags);
clear_bit(In_sync, &rdev->flags);