summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-28 01:10:24 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:05 +0200
commite4eb661d3a5764273cb854d7c441819943692971 (patch)
treeac7f654ed25f8daa21e626881940379791259162
parentbcachefs: fsck: Break walk_inode() up into multiple functions (diff)
downloadlinux-e4eb661d3a5764273cb854d7c441819943692971.tar.xz
linux-e4eb661d3a5764273cb854d7c441819943692971.zip
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>
-rw-r--r--fs/bcachefs/btree_io.c2
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;
}