diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-26 16:39:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-31 20:36:11 -0400 |
commit | 812a9297936a959c98a2e9e44a9a622bbe30b162 (patch) | |
tree | f1677eb0bcbc08fe0c2aab2fe05c0514a323b463 /fs/bcachefs/btree_update_interior.c | |
parent | 805b535a8afbcd8073a03eb25aafd82cb816bff6 (diff) | |
download | linux-stable-812a9297936a959c98a2e9e44a9a622bbe30b162.tar.gz linux-stable-812a9297936a959c98a2e9e44a9a622bbe30b162.tar.bz2 linux-stable-812a9297936a959c98a2e9e44a9a622bbe30b162.zip |
bcachefs: Fix btree node keys accounting in topology repair path
When dropping keys now outside a now because we're changing the node
min/max, we need to redo the node's accounting as well.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_update_interior.c')
-rw-r--r-- | fs/bcachefs/btree_update_interior.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index aae7a2687eee..826cebe4bce0 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -1543,6 +1543,7 @@ static int btree_split(struct btree_update *as, struct btree_trans *trans, u64 start_time = local_clock(); int ret = 0; + bch2_verify_btree_nr_keys(b); BUG_ON(!parent && (b != btree_node_root(c, b))); BUG_ON(parent && !btree_node_intent_locked(trans->paths + path, b->c.level + 1)); |