bcachefs: bch2_trans_inconsistent()
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 3 Mar 2022 03:18:56 +0000 (22:18 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:27 +0000 (17:09 -0400)
commit2158fe463b9d78c7cf90f74b8b5e9b81249d4347
tree97e92efe370a0ae8531d63dc61efa908140bb43b
parent0576ba9ae7c7939d2402cdad9614f39785b70d2b
bcachefs: bch2_trans_inconsistent()

Add a new error macro that also dumps transaction updates in addition to
doing an emergency shutdown - when a transaction update discovers or is
causing a fs inconsistency, it's helpful to see what updates it was
doing.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_iter.c
fs/bcachefs/btree_iter.h
fs/bcachefs/buckets.c
fs/bcachefs/error.h