diff options
Diffstat (limited to 'fs/btrfs/check-integrity.c')
-rw-r--r-- | fs/btrfs/check-integrity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index ab14c2e635ca..4ded1c3f92b8 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c | |||
@@ -2129,7 +2129,7 @@ static void btrfsic_bio_end_io(struct bio *bp) | |||
2129 | /* mutex is not held! This is not save if IO is not yet completed | 2129 | /* mutex is not held! This is not save if IO is not yet completed |
2130 | * on umount */ | 2130 | * on umount */ |
2131 | iodone_w_error = 0; | 2131 | iodone_w_error = 0; |
2132 | if (bp->bi_error) | 2132 | if (bp->bi_status) |
2133 | iodone_w_error = 1; | 2133 | iodone_w_error = 1; |
2134 | 2134 | ||
2135 | BUG_ON(NULL == block); | 2135 | BUG_ON(NULL == block); |
@@ -2143,7 +2143,7 @@ static void btrfsic_bio_end_io(struct bio *bp) | |||
2143 | if ((dev_state->state->print_mask & | 2143 | if ((dev_state->state->print_mask & |
2144 | BTRFSIC_PRINT_MASK_END_IO_BIO_BH)) | 2144 | BTRFSIC_PRINT_MASK_END_IO_BIO_BH)) |
2145 | pr_info("bio_end_io(err=%d) for %c @%llu (%s/%llu/%d)\n", | 2145 | pr_info("bio_end_io(err=%d) for %c @%llu (%s/%llu/%d)\n", |
2146 | bp->bi_error, | 2146 | bp->bi_status, |
2147 | btrfsic_get_block_type(dev_state->state, block), | 2147 | btrfsic_get_block_type(dev_state->state, block), |
2148 | block->logical_bytenr, dev_state->name, | 2148 | block->logical_bytenr, dev_state->name, |
2149 | block->dev_bytenr, block->mirror_num); | 2149 | block->dev_bytenr, block->mirror_num); |