diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-01 11:40:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:48 -0400 |
commit | 2e9f3b88858e4a36657e850edc58db0e2954a141 (patch) | |
tree | 0c8c5271987a63c0c413b5fd2a460645a3b58bdd /fs/bcachefs/recovery.c | |
parent | 04e23a566fa9f41228408a7829b4462fb62e42c9 (diff) | |
download | lwn-2e9f3b88858e4a36657e850edc58db0e2954a141.tar.gz lwn-2e9f3b88858e4a36657e850edc58db0e2954a141.zip |
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>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 0b3521c9cc19..a837d9eb0f6d 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); } |