diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-26 15:11:38 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-26 20:33:12 -0400 |
commit | 66927b89289974dab6d3b3cdd7706d0376034114 (patch) | |
tree | 4c696977fad58b7ceb844e06ef4abe9f34ebcaec /fs | |
parent | 49aa7830396bce33b00fa7ee734c35de36521138 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/data_update.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |