diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-04 02:32:46 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:09 +0200 |
commit | 73adfcaf54c8fae86d80da9acad828ee2001cd60 (patch) | |
tree | 211417ed1d8c7e3486baacd525c41ef00ec93dcc /fs/bcachefs/btree_io.c | |
parent | bcachefs: Ensure topology repair runs (diff) | |
download | linux-73adfcaf54c8fae86d80da9acad828ee2001cd60.tar.xz linux-73adfcaf54c8fae86d80da9acad828ee2001cd60.zip |
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 '')
-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; \ }) |