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/journal_io.c | |
parent | f0f41a6d74f7f682327eead3708473c11577b131 (diff) | |
download | lwn-fb64f3fdac7171d1b2c62239d512b749dec9582a.tar.gz lwn-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/journal_io.c')
-rw-r--r-- | fs/bcachefs/journal_io.c | 8 |
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); |