summaryrefslogtreecommitdiff
path: root/fs/bcachefs/recovery.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-03-25 16:12:33 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:37 -0400
commitf1d786a0dbc4483d176985ebe8f82fb7cdeec429 (patch)
tree72bfffbad869cbca22f33f6fa14c36400ad6bdda /fs/bcachefs/recovery.h
parent2f194e1697f733a2eae1d040eabe71b05c049e0b (diff)
bcachefs: Add an option for keeping journal entries after startup
This will be used by the userspace debug tools. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.h')
-rw-r--r--fs/bcachefs/recovery.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/fs/bcachefs/recovery.h b/fs/bcachefs/recovery.h
index fa1f2818817d..19f2f172a26b 100644
--- a/fs/bcachefs/recovery.h
+++ b/fs/bcachefs/recovery.h
@@ -2,18 +2,6 @@
#ifndef _BCACHEFS_RECOVERY_H
#define _BCACHEFS_RECOVERY_H
-struct journal_keys {
- struct journal_key {
- enum btree_id btree_id:8;
- unsigned level:8;
- struct bkey_i *k;
- u32 journal_seq;
- u32 journal_offset;
- } *d;
- size_t nr;
- u64 journal_seq_base;
-};
-
#define for_each_journal_key(keys, i) \
for (i = (keys).d; i < (keys).d + (keys).nr; (i)++)
@@ -56,6 +44,9 @@ void bch2_btree_and_journal_iter_init_node_iter(struct btree_and_journal_iter *,
struct journal_keys *,
struct btree *);
+void bch2_journal_keys_free(struct journal_keys *);
+void bch2_journal_entries_free(struct list_head *);
+
int bch2_fs_recovery(struct bch_fs *);
int bch2_fs_initialize(struct bch_fs *);