Commit 09ebfa61 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Drop a redundant error message

When we're already read-only, we don't need to print out errors from
writing btree nodes.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 02d51bb9
......@@ -1746,7 +1746,7 @@ static void btree_node_write_work(struct work_struct *work)
struct bch_fs *c = wbio->wbio.c;
struct btree *b = wbio->wbio.bio.bi_private;
struct bch_extent_ptr *ptr;
int ret;
int ret = 0;
btree_bounce_free(c,
wbio->data_bytes,
......@@ -1776,7 +1776,8 @@ static void btree_node_write_work(struct work_struct *work)
return;
err:
set_btree_node_noevict(b);
bch2_fs_fatal_error(c, "fatal error writing btree node");
if (!bch2_err_matches(ret, EROFS))
bch2_fs_fatal_error(c, "fatal error writing btree node");
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