Faulty
clear_bit(Faulty, &rd->rdev.flags);
set_bit(Faulty, &rdev->flags);
if (!rs->dev[i].data_dev || test_bit(Faulty, &rs->dev[i].rdev.flags)) {
set_bit(Faulty, &r->flags);
if (test_and_clear_bit(Faulty, &rdev->flags)) {
clear_bit(Faulty, &rdev->flags);
else if (test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &r->flags) &&
clear_bit(Faulty, &r->flags);
test_bit(Faulty, &rdev->flags) ||
!test_bit(Faulty, &rdev->flags)) {
if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) {
if (rdev->raid_disk >= 0 && !test_bit(Faulty, &rdev->flags)) {
if (rdev->raid_disk > -1 && !test_bit(Faulty, &rdev->flags)) {
if (rdev && test_bit(Faulty, &rdev->flags))
clear_bit(Faulty, &rdev->flags);
if (rdev->raid_disk < 0 || test_bit(Faulty, &rdev->flags))
if (rdev->raid_disk < 0 || test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev2->flags)) {
if (!test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
if (!test_bit(Faulty, &rdev->flags)
if (test_bit(Faulty, &rdev->flags))
clear_bit(Faulty, &rdev->flags);
set_bit(Faulty, &rdev->flags);
test_bit(Faulty, &rdev2->flags))
if (test_bit(Faulty, &rdev2->flags))
clear_bit(Faulty, &rdev->flags);
set_bit(Faulty, &rdev->flags);
if (test_bit(Faulty, &rdev2->flags))
if (test_bit(Faulty, &rdev->flags) ||
if (test_bit(Faulty, &rdev2->flags) ||
if ((iter->raid_disk >= 0) && !test_bit(Faulty, &iter->flags)) {
!test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags) && (role < MD_DISK_ROLE_MAX))
if (test_bit(Faulty, &rdev->flags))
if (!test_bit(Faulty, &rdev->flags)) {
if (test_bit(Faulty, &flags) ||
&& !test_bit(Faulty, &flags)))
if (!test_bit(Faulty, &flags) &&
if (!test_bit(Faulty, &rdev->flags) &&
else if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1) &&
clear_bit(Faulty, &rdev->flags);
clear_bit(Faulty, &rdev->flags);
!test_bit(Faulty, &rdev->flags) &&
if (rdev->raid_disk < 0 || test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags)) {
if (!rdev || test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags) &&
if (test_bit(Faulty, &rdev->flags)) {
if (test_bit(Faulty, &rdev->flags) ||
if (test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags);
test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &rdev->flags))
int faulty = test_bit(Faulty, &rdev->flags);
if (test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
set_bit(Faulty, &rdev->flags);
!test_bit(Faulty, &rdev->flags),
&& !test_bit(Faulty, &repl->flags)
set_bit(Faulty, &rdev->flags);
&& !test_bit(Faulty, &rdev->flags)
if (!test_bit(Faulty, &rdev->flags) &&
if (test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
if (test_bit(Faulty, &conf->mirrors[i].rdev->flags)) {
(!test_bit(Faulty, &rdev->flags) &&
!test_bit(Faulty, &rdev->flags)) {
!test_bit(Faulty, &rdev->flags)) {
test_bit(Faulty, &rdev->flags)) {
test_bit(Faulty, &conf->mirrors[i].rdev->flags))
if (!test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags) ||
if (!rdev || test_bit(Faulty, &rdev->flags) ||
if (!rdev || test_bit(Faulty, &rdev->flags))
if (rdev && (test_bit(Faulty, &rdev->flags)))
if (rrdev && (test_bit(Faulty, &rrdev->flags)))
if (rdev && (test_bit(Faulty, &rdev->flags)))
if (rrdev && (test_bit(Faulty, &rrdev->flags)))
set_bit(Faulty, &rdev->flags);
!test_bit(Faulty, &rdev->flags),
&& !test_bit(Faulty, &tmp->replacement->flags)
set_bit(Faulty, &tmp->rdev->flags);
&& !test_bit(Faulty, &tmp->rdev->flags)
if (!test_bit(Faulty, &rdev->flags) &&
if (test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags) &&
test_bit(Faulty, &rdev->flags) ||
test_bit(Faulty, &rdev->flags) ||
if (mrdev && (test_bit(Faulty, &mrdev->flags) ||
if (mreplace && test_bit(Faulty, &mreplace->flags))
if (rdev == NULL || test_bit(Faulty, &rdev->flags)) {
if (rdev == NULL || test_bit(Faulty, &rdev->flags))
if (rdev == NULL || test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
&& !test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags)) {
&& !test_bit(Faulty, &rdev->flags)) {
if (!rdev2 || test_bit(Faulty, &rdev2->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
test_bit(Faulty, &rdev->flags) ||
if (!test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags))
if (rdev == NULL || test_bit(Faulty, &rdev->flags) ||
test_bit(Faulty, &rdev->flags))
return test_bit(Faulty, &log->rdev->flags);
if (!log->rdev || test_bit(Faulty, &log->rdev->flags)) {
if (!log->rdev || test_bit(Faulty, &log->rdev->flags)) {
if (rdev && !test_bit(Faulty, &rdev->flags))
if (rdev && test_bit(Faulty, &rdev->flags))
if (rrdev && test_bit(Faulty, &rrdev->flags))
if (!test_bit(Faulty, &rdev->flags)) {
set_bit(Faulty, &rdev->flags);
!test_bit(Faulty, &rdev->flags))
&& !test_bit(Faulty, &rdev->flags)
&& !test_bit(Faulty, &rdev->flags)
&& !test_bit(Faulty, &rdev->flags)
if (rdev && !test_bit(Faulty, &rdev->flags) &&
if (rdev && !test_bit(Faulty, &rdev->flags))
if (rdev && test_bit(Faulty, &rdev->flags))
if (rdev2 && !test_bit(Faulty, &rdev2->flags)) {
if (rdev2 && !test_bit(Faulty, &rdev2->flags)) {
if (rdev2 && !test_bit(Faulty, &rdev2->flags)) {
if (rdev && !test_bit(Faulty, &rdev->flags))
if (rdev && !test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags) ||
if (test_bit(Faulty, &rdev->flags) ||
if (rdev == NULL || test_bit(Faulty, &rdev->flags))
if (rdev && test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
if (rdev && test_bit(Faulty, &rdev->flags))
if (!rdev || test_bit(Faulty, &rdev->flags))
i, !test_bit(Faulty, &rdev->flags),
&& !test_bit(Faulty, &replacement->flags)
set_bit(Faulty, &rdev->flags);
&& !test_bit(Faulty, &rdev->flags)
if (!test_bit(Faulty, &rdev->flags) &&
&& !test_bit(Faulty, &rdev->flags))
!test_bit(Faulty, &rdev->flags)) {
&& !test_bit(Faulty, &rdev->flags)) {