• Kent Overstreet's avatar
    bcachefs: Kill btree_iter->journal_pos · ad9c7992
    Kent Overstreet authored
    For BTREE_ITER_WITH_JOURNAL, we memoize lookups in the journal keys, to
    avoid the binary search overhead.
    
    Previously we stashed the pos of the last key returned from the journal,
    in order to force the lookup to be redone when rewinding.
    
    Now bch2_journal_keys_peek_upto() handles rewinding itself when
    necessary - so we can slim down btree_iter.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    ad9c7992
btree_iter.c 79.8 KB