diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-29 14:22:29 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-07 14:29:32 -0400 |
commit | 39cdbd0940f46a56032c7417f2f93072fec524f6 (patch) | |
tree | 38c015adc1cc300c9cb3bf8f8faeb77c6cc3121b /fs/bcachefs/error.h | |
parent | 52b17bca7b20663e5df6dbfc24cc2030259b64b6 (diff) |
bcachefs: Change btree_insert_node() assertion to errorbcachefs-for-v6.14
Debug for https://github.com/koverstreet/bcachefs/issues/843
Print useful debug info and go emergency read-only.
(cherry picked from commit 63c3b8f616cc95bb1fcc6101c92485d41c535d7c)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/error.h')
-rw-r--r-- | fs/bcachefs/error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/error.h b/fs/bcachefs/error.h index 7acf2a27ca28..5730eb6b2f38 100644 --- a/fs/bcachefs/error.h +++ b/fs/bcachefs/error.h @@ -18,6 +18,8 @@ struct work_struct; /* Error messages: */ +void bch2_log_msg_start(struct bch_fs *, struct printbuf *); + /* * Inconsistency errors: The on disk data is inconsistent. If these occur during * initial recovery, they don't indicate a bug in the running code - we walk all |