Commit 08f78031 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: bch2_trans_revalidate_updates_in_node()



When we started stashing the key being overwritten in
btree_insert_entry, this introduced a typical iterator invalidation
problem, triggered by btree node splits or resorts.

Previously, dealt with this by unconditionally re-validating those
stashed pointers in the transaction commit path. This patch gets rid of
that by doing it only when needed, in bch2_trans_node_add() or
bch2_trans_node_reinit_iter().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 321bdc73
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment