From: Kent Overstreet Date: Tue, 1 Dec 2020 16:40:59 +0000 (-0500) Subject: bcachefs: Use BTREE_ITER_PREFETCH in journal+btree iter X-Git-Tag: v6.7-rc1~201^2~1895 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e9f3b88858e4a36657e850edc58db0e2954a141;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 0b3521c9cc19e..a837d9eb0f6d7 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -187,7 +187,7 @@ void bch2_btree_and_journal_iter_init(struct btree_and_journal_iter *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); }