Commit 66927b89 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix failure to return error in data_update_index_update()

This fixes an assertion pop in io_write.c - if we don't return an error
we're supposed to have completed all the btree updates.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 49aa7830
...@@ -337,6 +337,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans, ...@@ -337,6 +337,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
printbuf_exit(&buf); printbuf_exit(&buf);
bch2_fatal_error(c); bch2_fatal_error(c);
ret = -EIO;
goto out; 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