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/journal_io.c | |
parent | 52fbb7c859788bb10dc0f1527eedf80fd11ec9ec (diff) | |
download | lwn-306d40df7d27c99a8ec63fc730747a77959c4358.tar.gz lwn-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/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index a1bae99aeaab..4d20762f55d3 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -960,7 +960,8 @@ static void journal_write_endio(struct bio *bio) struct bch_dev *ca = bio->bi_private; struct journal *j = &ca->fs->journal; - if (bch2_dev_io_err_on(bio->bi_status, ca, "journal write") || + if (bch2_dev_io_err_on(bio->bi_status, ca, "journal write: %s", + blk_status_to_str(bio->bi_status)) || bch2_meta_write_fault("journal")) { struct journal_buf *w = journal_prev_buf(j); unsigned long flags; |