diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-18 02:38:09 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 19:47:37 +0300 |
commit | ad9c7992eb9906caf17aa88f1fd41770879d1cb6 (patch) | |
tree | ceea9e692991bb708ee6f41afba98752db1681c7 /fs/bcachefs/replicas.c | |
parent | 1ae8a0904a6a7b16ee2ffa30153d4e5c38719321 (diff) | |
download | linux-ad9c7992eb9906caf17aa88f1fd41770879d1cb6.tar.xz |
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/replicas.c')
0 files changed, 0 insertions, 0 deletions