diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-14 16:39:04 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:48 +0200 |
commit | 5bbe3f2d0e1e52c03f32cb40cc749e1ace6453d0 (patch) | |
tree | 561949ed10a4c50bf1727f0f8b294ae56f22f688 /fs/bcachefs/journal_io.h | |
parent | bcachefs: bch2_btree_trans_to_text(): print blocked time (diff) | |
download | linux-5bbe3f2d0e1e52c03f32cb40cc749e1ace6453d0.tar.xz linux-5bbe3f2d0e1e52c03f32cb40cc749e1ace6453d0.zip |
bcachefs: Log more messages in the journal
This patch
- Adds a mechanism for queuing up journal entries prior to the journal
being started, which will be used for early journal log messages
- Adds bch2_fs_log_msg() and improves bch2_trans_log_msg(), which now
take format strings. bch2_fs_log_msg() can be used before or after
the journal has been started, and will use the appropriate mechanism.
- Deletes the now obsolete bch2_journal_log_msg()
- And adds more log messages to the recovery path - messages for
journal/filesystem started, journal entries being blacklisted, and
journal replay starting/finishing.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_io.h')
-rw-r--r-- | fs/bcachefs/journal_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal_io.h b/fs/bcachefs/journal_io.h index 2f8bbf06b289..a32c2876f2a6 100644 --- a/fs/bcachefs/journal_io.h +++ b/fs/bcachefs/journal_io.h @@ -52,7 +52,7 @@ void bch2_journal_entry_to_text(struct printbuf *, struct bch_fs *, void bch2_journal_ptrs_to_text(struct printbuf *, struct bch_fs *, struct journal_replay *); -int bch2_journal_read(struct bch_fs *, u64 *, u64 *); +int bch2_journal_read(struct bch_fs *, u64 *, u64 *, u64 *); void bch2_journal_write(struct closure *); |