Commit e4eb661d authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix btree node write error message

Error messages should include the error code, when available.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 06dcca51
......@@ -1777,7 +1777,7 @@ static void btree_node_write_work(struct work_struct *work)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment