mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
0ed4ca146e
commit
73adfcaf54
1 changed files with 4 additions and 1 deletions
|
@ -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; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue