Commit 73adfcaf authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix btree_err() macro

Error code wasn't being propagated correctly, change it to match
fsck_err()
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0ed4ca14
......@@ -630,8 +630,11 @@ static int __btree_err(enum btree_err_type type,
({ \
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; \
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment