• Kent Overstreet's avatar
    bcachefs: More btree iterator fixes · d697b9ab
    Kent Overstreet authored
     - check for getting to the end of the btree in bch2_path_verify_locks
       and __btree_path_traverse_all(), this fixes an infinite loop in
       __btree_path_traverse_all().
     - relax requirement in bch2_btree_node_upgrade() that we must want an
       intent lock, this fixes bugs with paths that point to interior nodes
       (nonzero level).
     - bch2_btree_node_update_key(): fix it to upgrade the path to an intent
       lock, if necessary
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    d697b9ab
btree_update_interior.c 55.9 KB