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/backpointers.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/backpointers.c')
-rw-r--r-- | fs/bcachefs/backpointers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/backpointers.c b/fs/bcachefs/backpointers.c index 569b97904da4..f9ccefc74c49 100644 --- a/fs/bcachefs/backpointers.c +++ b/fs/bcachefs/backpointers.c @@ -131,8 +131,7 @@ static noinline int backpointer_mod_err(struct btree_trans *trans, printbuf_exit(&buf); if (c->curr_recovery_pass > BCH_RECOVERY_PASS_check_extents_to_backpointers) { - bch2_inconsistent_error(c); - return -EIO; + return bch2_inconsistent_error(c) ? BCH_ERR_erofs_unfixed_errors : 0; } else { return 0; } |