summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal_io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-01 00:12:54 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:20 +0300
commitfb64f3fdac7171d1b2c62239d512b749dec9582a (patch)
tree14cd9be917bbe84379c3efb06a972bac0bcb76a2 /fs/bcachefs/journal_io.c
parentf0f41a6d74f7f682327eead3708473c11577b131 (diff)
downloadlinux-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.xz
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/journal_io.c')
-rw-r--r--fs/bcachefs/journal_io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c
index 4f8dd0130b37..012b89e9d3cd 100644
--- a/fs/bcachefs/journal_io.c
+++ b/fs/bcachefs/journal_io.c
@@ -478,6 +478,14 @@ fsck_err:
return ret;
}
+static int journal_entry_validate_log(struct bch_fs *c,
+ const char *where,
+ struct jset_entry *entry,
+ unsigned version, int big_endian, int write)
+{
+ return 0;
+}
+
struct jset_entry_ops {
int (*validate)(struct bch_fs *, const char *,
struct jset_entry *, unsigned, int, int);