diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-02 13:43:58 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:42 -0400 |
commit | 306d40df7d27c99a8ec63fc730747a77959c4358 (patch) | |
tree | e0ad45548fb64893424a7f7675d73769baf98bdf /fs/bcachefs/super-io.c | |
parent | 52fbb7c859788bb10dc0f1527eedf80fd11ec9ec (diff) |
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); |