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
@@ -271,7 +271,7 @@ static void write_super_endio(struct bio *bio)
|
||||
{
|
||||
struct cache *ca = bio->bi_private;
|
||||
|
||||
bch_count_io_errors(ca, bio->bi_error, "writing superblock");
|
||||
bch_count_io_errors(ca, bio->bi_status, "writing superblock");
|
||||
closure_put(&ca->set->sb_write);
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@ static void uuid_endio(struct bio *bio)
|
||||
struct closure *cl = bio->bi_private;
|
||||
struct cache_set *c = container_of(cl, struct cache_set, uuid_write);
|
||||
|
||||
cache_set_err_on(bio->bi_error, c, "accessing uuids");
|
||||
cache_set_err_on(bio->bi_status, c, "accessing uuids");
|
||||
bch_bbio_free(bio, c);
|
||||
closure_put(cl);
|
||||
}
|
||||
@@ -494,7 +494,7 @@ static void prio_endio(struct bio *bio)
|
||||
{
|
||||
struct cache *ca = bio->bi_private;
|
||||
|
||||
cache_set_err_on(bio->bi_error, ca->set, "accessing priorities");
|
||||
cache_set_err_on(bio->bi_status, ca->set, "accessing priorities");
|
||||
bch_bbio_free(bio, ca->set);
|
||||
closure_put(&ca->prio);
|
||||
}
|
||||
|
Reference in New Issue
Block a user