mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +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
@ -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…
Reference in New Issue
Block a user