• Kent Overstreet's avatar
    bcachefs: bch2_trans_revalidate_updates_in_node() · 08f78031
    Kent Overstreet authored
    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>
    08f78031
btree_update_leaf.c 46.4 KB