bcachefs: BCH_JSET_ENTRY_log
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 31 Dec 2021 21:12:54 +0000 (16:12 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commitfb64f3fdac7171d1b2c62239d512b749dec9582a
tree14cd9be917bbe84379c3efb06a972bac0bcb76a2
parentf0f41a6d74f7f682327eead3708473c11577b131
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>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/btree_types.h
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/journal_io.c
fs/bcachefs/opts.h