summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_update_interior.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-03-31 16:23:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:38 -0400
commit501e1bda3e58db75eaf938fde70b03639dd6282a (patch)
treed7a2421d2ece9b155cd13f57ef67d468401cf7d2 /fs/bcachefs/btree_update_interior.h
parentb58a181d5c4a145730f202ac0375fa463c88f710 (diff)
bcachefs: Fix journalling of interior node updates
We weren't journalling updates done while splitting/compacting nodes - oops. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.h')
-rw-r--r--fs/bcachefs/btree_update_interior.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update_interior.h b/fs/bcachefs/btree_update_interior.h
index 4a2ea69f6a2c..d3498aed145b 100644
--- a/fs/bcachefs/btree_update_interior.h
+++ b/fs/bcachefs/btree_update_interior.h
@@ -104,6 +104,10 @@ struct btree_update {
struct btree *new_nodes[BTREE_MAX_DEPTH * 2 + GC_MERGE_NODES];
unsigned nr_new_nodes;
+ unsigned journal_u64s;
+ u64 journal_entries[
+ (BKEY_BTREE_PTR_U64s_MAX + 1) * (BTREE_MAX_DEPTH - 1) * 2];
+
/* Only here to reduce stack usage on recursive splits: */
struct keylist parent_keys;
/*