Commit ad9c7992 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Kill btree_iter->journal_pos



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>
parent 1ae8a090
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