From: Kent Overstreet Date: Wed, 25 Jan 2023 15:08:50 +0000 (-0500) Subject: bcachefs: Dump transaction updates before panicing X-Git-Tag: v6.7-rc1~201^2~593 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0329631c9165d2dddd5a89da5f72f3175011b49f;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h index dae72620dae36..9991879dfbff1 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, ...) \