From: Kent Overstreet Date: Mon, 26 Aug 2024 19:11:38 +0000 (-0400) Subject: bcachefs: Fix failure to return error in data_update_index_update() X-Git-Tag: v6.12~281^2~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66927b89289974dab6d3b3cdd7706d0376034114;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index 65176d51b502..004894ad4147 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -337,6 +337,7 @@ restart_drop_extra_replicas: printbuf_exit(&buf); bch2_fatal_error(c); + ret = -EIO; goto out; }