Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165846
b: refs/heads/master
c: 2d6e4ec
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams committed Sep 16, 2009
1 parent f441c67 commit 584430d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 084dac53adcfb910792a66bc0bae720cdde971de
refs/heads/master: 2d6e4ecc87d20299bcb249dd62efbd73496744c3
6 changes: 4 additions & 2 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3214,8 +3214,10 @@ static bool handle_stripe6(struct stripe_head *sh)
/* now count some things */
if (test_bit(R5_LOCKED, &dev->flags)) s.locked++;
if (test_bit(R5_UPTODATE, &dev->flags)) s.uptodate++;
if (test_bit(R5_Wantcompute, &dev->flags))
BUG_ON(++s.compute > 2);
if (test_bit(R5_Wantcompute, &dev->flags)) {
s.compute++;
BUG_ON(s.compute > 2);
}

if (test_bit(R5_Wantfill, &dev->flags)) {
s.to_fill++;
Expand Down

0 comments on commit 584430d

Please sign in to comment.