diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-22 20:25:00 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 20:34:08 +0100 |
commit | 5f43b0134e40bd798ba0999a11e90f24a0c65a51 (patch) | |
tree | 1e5f539c6fb8b51dc8460c942a9e2ea713f27c4f /fs/bcachefs/btree_journal_iter.h | |
parent | bcachefs: btree_and_journal_iter.trans (diff) | |
download | linux-5f43b0134e40bd798ba0999a11e90f24a0c65a51.tar.xz linux-5f43b0134e40bd798ba0999a11e90f24a0c65a51.zip |
bcachefs: btree node prefetching in check_topology
btree_and_journal_iter is old code that we want to get rid of, but we're
not ready to yet.
lack of btree node prefetching is, it turns out, a real performance
issue for fsck on spinning rust, so - add it.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_journal_iter.h')
-rw-r--r-- | fs/bcachefs/btree_journal_iter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_journal_iter.h b/fs/bcachefs/btree_journal_iter.h index 1793cf89148b..c9d19da3ea04 100644 --- a/fs/bcachefs/btree_journal_iter.h +++ b/fs/bcachefs/btree_journal_iter.h @@ -23,6 +23,7 @@ struct btree_and_journal_iter { struct journal_iter journal; struct bpos pos; bool at_end; + bool prefetch; }; struct bkey_i *bch2_journal_keys_peek_upto(struct bch_fs *, enum btree_id, |