diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-03 20:32:46 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:09 -0400 |
commit | 73adfcaf54c8fae86d80da9acad828ee2001cd60 (patch) | |
tree | 211417ed1d8c7e3486baacd525c41ef00ec93dcc /fs/bcachefs/btree_io.c | |
parent | 0ed4ca146efda60057782ccda6dc056bf538cc75 (diff) |
bcachefs: Fix btree_err() macro
Error code wasn't being propagated correctly, change it to match
fsck_err()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_io.c')
-rw-r--r-- | fs/bcachefs/btree_io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_io.c b/fs/bcachefs/btree_io.c index 224ed5216b0a..80bd84f90dbf 100644 --- a/fs/bcachefs/btree_io.c +++ b/fs/bcachefs/btree_io.c @@ -630,8 +630,11 @@ fsck_err: ({ \ int _ret = __btree_err(type, c, ca, b, i, write, have_retry, msg, ##__VA_ARGS__);\ \ - if (_ret != -BCH_ERR_fsck_fix) \ + if (_ret != -BCH_ERR_fsck_fix) { \ + ret = _ret; \ goto fsck_err; \ + } \ + \ *saw_error = true; \ }) |