summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/replicas.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-17 18:38:09 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 11:47:37 -0500
commitad9c7992eb9906caf17aa88f1fd41770879d1cb6 (patch)
treeceea9e692991bb708ee6f41afba98752db1681c7 /fs/bcachefs/replicas.c
parent1ae8a0904a6a7b16ee2ffa30153d4e5c38719321 (diff)
downloadlinux-stable-ad9c7992eb9906caf17aa88f1fd41770879d1cb6.tar.gz
linux-stable-ad9c7992eb9906caf17aa88f1fd41770879d1cb6.tar.bz2
linux-stable-ad9c7992eb9906caf17aa88f1fd41770879d1cb6.zip
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