Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260980
b: refs/heads/master
c: 86c374b
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Jul 27, 2011
1 parent 322bbd1 commit 8b4c669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc94015a9eac5d511fe9b716624d8fdf9c6e64b2
refs/heads/master: 86c374ba9f6726a79a032ede741dc66d219b166e
9 changes: 4 additions & 5 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -2921,8 +2921,7 @@ static void handle_parity_checks6(raid5_conf_t *conf, struct stripe_head *sh,
}
}

static void handle_stripe_expansion(raid5_conf_t *conf, struct stripe_head *sh,
struct stripe_head_state *r6s)
static void handle_stripe_expansion(raid5_conf_t *conf, struct stripe_head *sh)
{
int i;

Expand Down Expand Up @@ -2964,7 +2963,7 @@ static void handle_stripe_expansion(raid5_conf_t *conf, struct stripe_head *sh,
set_bit(R5_UPTODATE, &sh2->dev[dd_idx].flags);
for (j = 0; j < conf->raid_disks; j++)
if (j != sh2->pd_idx &&
(!r6s || j != sh2->qd_idx) &&
j != sh2->qd_idx &&
!test_bit(R5_Expanded, &sh2->dev[j].flags))
break;
if (j == conf->raid_disks) {
Expand Down Expand Up @@ -3249,7 +3248,7 @@ static void handle_stripe5(struct stripe_head *sh, struct stripe_head_state *s)

if (s->expanding && s->locked == 0 &&
!test_bit(STRIPE_COMPUTE_RUN, &sh->state))
handle_stripe_expansion(conf, sh, NULL);
handle_stripe_expansion(conf, sh);
}

static void handle_stripe6(struct stripe_head *sh, struct stripe_head_state *s)
Expand Down Expand Up @@ -3512,7 +3511,7 @@ static void handle_stripe6(struct stripe_head *sh, struct stripe_head_state *s)

if (s->expanding && s->locked == 0 &&
!test_bit(STRIPE_COMPUTE_RUN, &sh->state))
handle_stripe_expansion(conf, sh, s);
handle_stripe_expansion(conf, sh);
}

static void handle_stripe(struct stripe_head *sh)
Expand Down

0 comments on commit 8b4c669

Please sign in to comment.