diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-03 06:18:56 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:27 +0300 |
commit | 2158fe463b9d78c7cf90f74b8b5e9b81249d4347 (patch) | |
tree | 97e92efe370a0ae8531d63dc61efa908140bb43b /fs/bcachefs/btree_iter.h | |
parent | 0576ba9ae7c7939d2402cdad9614f39785b70d2b (diff) | |
download | linux-2158fe463b9d78c7cf90f74b8b5e9b81249d4347.tar.xz |
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>
Diffstat (limited to 'fs/bcachefs/btree_iter.h')
-rw-r--r-- | fs/bcachefs/btree_iter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index 27b3b82f7df3..72cb694f76fd 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -425,6 +425,7 @@ __bch2_btree_iter_peek_and_restart(struct btree_trans *trans, /* new multiple iterator interface: */ +void bch2_dump_trans_updates(struct btree_trans *); void bch2_dump_trans_paths_updates(struct btree_trans *); void __bch2_trans_init(struct btree_trans *, struct bch_fs *, unsigned, size_t, const char *); |