bcachefs: Fix failure to return error in data_update_index_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 26 Aug 2024 19:11:38 +0000 (15:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 27 Aug 2024 00:33:12 +0000 (20:33 -0400)
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: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/data_update.c

index 65176d51b502e615a522d7533a2efcc986979fe0..004894ad41470125462e225b963e7b0a61c9566a 100644 (file)
@@ -337,6 +337,7 @@ restart_drop_extra_replicas:
                        printbuf_exit(&buf);
 
                        bch2_fatal_error(c);
+                       ret = -EIO;
                        goto out;
                }