diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-06 17:24:18 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-13 21:22:23 -0400 |
commit | 52946d828aac5bc8e20665a8434f87740fad03e3 (patch) | |
tree | ec9e7cb5aea0b6f97a3af07f12eed280926a71f5 /fs/bcachefs/btree_update_interior.c | |
parent | da23795e4c3ae0efd701e81b54c5c42d4b6f37f4 (diff) | |
download | linux-stable-52946d828aac5bc8e20665a8434f87740fad03e3.tar.gz linux-stable-52946d828aac5bc8e20665a8434f87740fad03e3.tar.bz2 linux-stable-52946d828aac5bc8e20665a8434f87740fad03e3.zip |
bcachefs: Kill more -EIO error codes
This converts -EIOs related to btree node errors to private error codes,
which will help with some ongoing debugging by giving us better error
messages.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.c')
-rw-r--r-- | fs/bcachefs/btree_update_interior.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index 8b0291cfa872..fd0bbce11765 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -1894,8 +1894,7 @@ int __bch2_foreground_maybe_merge(struct btree_trans *trans, __func__, buf1.buf, buf2.buf); printbuf_exit(&buf1); printbuf_exit(&buf2); - bch2_topology_error(c); - ret = -EIO; + ret = bch2_topology_error(c); goto err; } |