Skip to content

Commit 66927b8

Browse files
author
Kent Overstreet
committed
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: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 49aa783 commit 66927b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/data_update.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ static int __bch2_data_update_index_update(struct btree_trans *trans,
337337
printbuf_exit(&buf);
338338

339339
bch2_fatal_error(c);
340+
ret = -EIO;
340341
goto out;
341342
}
342343

0 commit comments

Comments
 (0)