summaryrefslogtreecommitdiff
path: root/fs/bcachefs/error.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-25 10:08:50 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:49 -0400
commit0329631c9165d2dddd5a89da5f72f3175011b49f (patch)
treecc510b04b4e4cb5b91bfa50a05382c431bd94288 /fs/bcachefs/error.h
parentad5d3d820a97500d8af0d5f337f8f523c6099ac6 (diff)
bcachefs: Dump transaction updates before panicing
When errors=panic, we need to dump transaction updates before calling bch2_inconsistent_error(). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/error.h')
-rw-r--r--fs/bcachefs/error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h
index dae72620dae3..9991879dfbff 100644
--- a/fs/bcachefs/error.h
+++ b/fs/bcachefs/error.h
@@ -73,8 +73,8 @@ do { \
#define bch2_trans_inconsistent(trans, ...) \
({ \
bch_err(trans->c, __VA_ARGS__); \
- bch2_inconsistent_error(trans->c); \
bch2_dump_trans_updates(trans); \
+ bch2_inconsistent_error(trans->c); \
})
#define bch2_trans_inconsistent_on(cond, trans, ...) \