diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-31 16:12:54 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:20 -0400 |
commit | fb64f3fdac7171d1b2c62239d512b749dec9582a (patch) | |
tree | 14cd9be917bbe84379c3efb06a972bac0bcb76a2 /fs/bcachefs/opts.h | |
parent | f0f41a6d74f7f682327eead3708473c11577b131 (diff) | |
download | linux-stable-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.gz linux-stable-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.bz2 linux-stable-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/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index af61fe588d3f..f7355c455b62 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -327,6 +327,11 @@ enum opt_type { OPT_BOOL(), \ NO_SB_OPT, false, \ NULL, "Read all journal entries, not just dirty ones")\ + x(journal_transaction_names, u8, \ + OPT_FS|OPT_FORMAT|OPT_MOUNT|OPT_RUNTIME, \ + OPT_BOOL(), \ + BCH_SB_JOURNAL_TRANSACTION_NAMES, true, \ + NULL, "Log transaction function names in journal") \ x(noexcl, u8, \ OPT_FS|OPT_MOUNT, \ OPT_BOOL(), \ |