block: switch bios to blk_status_t
Replace bi_error with a new bi_status to allow for a clear conversion. Note that device mapper overloaded bi_error with a private value, which we'll have to keep arround at least for now and thus propagate to a proper blk_status_t value. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:

committed by
Jens Axboe

parent
fc17b6534e
commit
4e4cbee93d
@@ -2129,7 +2129,7 @@ static void btrfsic_bio_end_io(struct bio *bp)
|
||||
/* mutex is not held! This is not save if IO is not yet completed
|
||||
* on umount */
|
||||
iodone_w_error = 0;
|
||||
if (bp->bi_error)
|
||||
if (bp->bi_status)
|
||||
iodone_w_error = 1;
|
||||
|
||||
BUG_ON(NULL == block);
|
||||
@@ -2143,7 +2143,7 @@ static void btrfsic_bio_end_io(struct bio *bp)
|
||||
if ((dev_state->state->print_mask &
|
||||
BTRFSIC_PRINT_MASK_END_IO_BIO_BH))
|
||||
pr_info("bio_end_io(err=%d) for %c @%llu (%s/%llu/%d)\n",
|
||||
bp->bi_error,
|
||||
bp->bi_status,
|
||||
btrfsic_get_block_type(dev_state->state, block),
|
||||
block->logical_bytenr, dev_state->name,
|
||||
block->dev_bytenr, block->mirror_num);
|
||||
|
Reference in New Issue
Block a user