diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-28 02:10:24 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:05 +0300 |
commit | e4eb661d3a5764273cb854d7c441819943692971 (patch) | |
tree | ac7f654ed25f8daa21e626881940379791259162 /fs | |
parent | 06dcca5191dcae948fa8ffd9369deb832881ffcd (diff) | |
download | linux-e4eb661d3a5764273cb854d7c441819943692971.tar.xz |
bcachefs: Fix btree node write error message
Error messages should include the error code, when available.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/btree_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c index 27a2a7b31f37..19aca1c0f2a2 100644 --- a/fs/bcachefs/btree_io.c +++ b/fs/bcachefs/btree_io.c @@ -1777,7 +1777,7 @@ out: err: set_btree_node_noevict(b); if (!bch2_err_matches(ret, EROFS)) - bch2_fs_fatal_error(c, "fatal error writing btree node"); + bch2_fs_fatal_error(c, "fatal error writing btree node: %s", bch2_err_str(ret)); goto out; } |