diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 3f91c2e1dfe7..832fb4d56657 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2480,7 +2480,7 @@ static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) | |||
2480 | rdev_clear_badblocks( | 2480 | rdev_clear_badblocks( |
2481 | rdev, | 2481 | rdev, |
2482 | r10_bio->devs[m].addr, | 2482 | r10_bio->devs[m].addr, |
2483 | r10_bio->sectors); | 2483 | r10_bio->sectors, 0); |
2484 | } else { | 2484 | } else { |
2485 | if (!rdev_set_badblocks( | 2485 | if (!rdev_set_badblocks( |
2486 | rdev, | 2486 | rdev, |
@@ -2496,7 +2496,7 @@ static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) | |||
2496 | rdev_clear_badblocks( | 2496 | rdev_clear_badblocks( |
2497 | rdev, | 2497 | rdev, |
2498 | r10_bio->devs[m].addr, | 2498 | r10_bio->devs[m].addr, |
2499 | r10_bio->sectors); | 2499 | r10_bio->sectors, 0); |
2500 | } else { | 2500 | } else { |
2501 | if (!rdev_set_badblocks( | 2501 | if (!rdev_set_badblocks( |
2502 | rdev, | 2502 | rdev, |
@@ -2515,7 +2515,7 @@ static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) | |||
2515 | rdev_clear_badblocks( | 2515 | rdev_clear_badblocks( |
2516 | rdev, | 2516 | rdev, |
2517 | r10_bio->devs[m].addr, | 2517 | r10_bio->devs[m].addr, |
2518 | r10_bio->sectors); | 2518 | r10_bio->sectors, 0); |
2519 | rdev_dec_pending(rdev, conf->mddev); | 2519 | rdev_dec_pending(rdev, conf->mddev); |
2520 | } else if (bio != NULL && | 2520 | } else if (bio != NULL && |
2521 | !test_bit(BIO_UPTODATE, &bio->bi_flags)) { | 2521 | !test_bit(BIO_UPTODATE, &bio->bi_flags)) { |
@@ -2532,7 +2532,7 @@ static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) | |||
2532 | rdev_clear_badblocks( | 2532 | rdev_clear_badblocks( |
2533 | rdev, | 2533 | rdev, |
2534 | r10_bio->devs[m].addr, | 2534 | r10_bio->devs[m].addr, |
2535 | r10_bio->sectors); | 2535 | r10_bio->sectors, 0); |
2536 | rdev_dec_pending(rdev, conf->mddev); | 2536 | rdev_dec_pending(rdev, conf->mddev); |
2537 | } | 2537 | } |
2538 | } | 2538 | } |