mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
bcachefs: Use BTREE_ITER_PREFETCH in journal+btree iter
Introducing the journal+btree iter introduced a regression where we stopped using BTREE_ITER_PREFETCH - this is a performance regression on rotating disks. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
04e23a566f
commit
2e9f3b8885
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ void bch2_btree_and_journal_iter_init(struct btree_and_journal_iter *iter,
|
||||||
{
|
{
|
||||||
memset(iter, 0, sizeof(*iter));
|
memset(iter, 0, sizeof(*iter));
|
||||||
|
|
||||||
iter->btree = bch2_trans_get_iter(trans, id, pos, 0);
|
iter->btree = bch2_trans_get_iter(trans, id, pos, BTREE_ITER_PREFETCH);
|
||||||
bch2_journal_iter_init(&iter->journal, journal_keys, id, 0, pos);
|
bch2_journal_iter_init(&iter->journal, journal_keys, id, 0, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue