summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.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/bcachefs.h
parent2f194e1697f733a2eae1d040eabe71b05c049e0b (diff)
downloadlinux-f1d786a0dbc4483d176985ebe8f82fb7cdeec429.tar.gz
linux-f1d786a0dbc4483d176985ebe8f82fb7cdeec429.tar.bz2
linux-f1d786a0dbc4483d176985ebe8f82fb7cdeec429.zip
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/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 32cdf87ee55d..5304b6762179 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -523,6 +523,18 @@ struct journal_seq_blacklist_table {
} entries[0];
};
+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;
+};
+
struct bch_fs {
struct closure cl;
@@ -791,6 +803,8 @@ struct bch_fs {
mempool_t btree_bounce_pool;
struct journal journal;
+ struct list_head journal_entries;
+ struct journal_keys journal_keys;
u64 last_bucket_seq_cleanup;