aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_types.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2021-12-31 16:12:54 -0500
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:20 -0400
commitfb64f3fdac7171d1b2c62239d512b749dec9582a (patch)
tree14cd9be917bbe84379c3efb06a972bac0bcb76a2 /fs/bcachefs/btree_types.h
parentbcachefs: Add error messages for memory allocation failures (diff)
downloadlinux-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.gz
linux-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.bz2
linux-fb64f3fdac7171d1b2c62239d512b749dec9582a.zip
bcachefs: BCH_JSET_ENTRY_log
Add a journal entry type for logging messages, and add an option to use it to log the transaction name - this makes for a very handy debugging tool, as with it we can use the 'bcachefs list_journal' command to see not only what updates were done, but what was doing them. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_types.h')
-rw-r--r--fs/bcachefs/btree_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_types.h b/fs/bcachefs/btree_types.h
index 223af7848fb4..2c8b30949e6f 100644
--- a/fs/bcachefs/btree_types.h
+++ b/fs/bcachefs/btree_types.h
@@ -380,6 +380,7 @@ struct btree_trans {
bool in_traverse_all:1;
bool restarted:1;
bool paths_sorted:1;
+ bool journal_transaction_names:1;
/*
* For when bch2_trans_update notices we'll be splitting a compressed
* extent: