• Kent Overstreet's avatar
    bcachefs: Kill bch2_btree_iter_set_pos_same_leaf() · 792e2c4c
    Kent Overstreet authored
    The only reason we were keeping this around was for
    BTREE_INSERT_NOUNLOCK semantics - if bch2_btree_iter_set_pos() advances
    to the next leaf node, it'll drop the lock on the node that we just
    inserted to.
    
    But we don't rely on BTREE_INSERT_NOUNLOCK semantics for the extents
    btree, just the inodes btree, and if we do need it for the extents btree
    in the future we can do it more cleanly by cloning the iterator - this
    lets us delete some special cases in the btree iterator code, which is
    complicated enough as it is.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    792e2c4c
btree_update_leaf.c 30 KB