diff options
author | 2020-07-02 13:43:58 -0400 | |
---|---|---|
committer | 2023-10-22 17:08:42 -0400 | |
commit | 306d40df7d27c99a8ec63fc730747a77959c4358 (patch) | |
tree | e0ad45548fb64893424a7f7675d73769baf98bdf /fs/bcachefs/super-io.c | |
parent | bcachefs: Don't cap ios in dio write path at 2 MB (diff) | |
download | linux-306d40df7d27c99a8ec63fc730747a77959c4358.tar.gz linux-306d40df7d27c99a8ec63fc730747a77959c4358.tar.bz2 linux-306d40df7d27c99a8ec63fc730747a77959c4358.zip |
bcachefs: Use blk_status_to_str()
Improved error messages are always a good thing
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r-- | fs/bcachefs/super-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index eb5a91d232e0..8541db5e5e48 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -640,7 +640,8 @@ static void write_super_endio(struct bio *bio) /* XXX: return errors directly */ - if (bch2_dev_io_err_on(bio->bi_status, ca, "superblock write")) + if (bch2_dev_io_err_on(bio->bi_status, ca, "superblock write: %s", + blk_status_to_str(bio->bi_status))) ca->sb_write_error = 1; closure_put(&ca->fs->sb_write); |