mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 23:21:49 -04:00
bcachefs: don't clear accessed bit in btree node fill
Seeing strange performance issues that might be caused by memory pressure causing prefetched nodes to be evicted before they're used. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -719,12 +719,6 @@ static noinline struct btree *bch2_btree_node_fill(struct btree_trans *trans,
|
||||
if (IS_ERR(b))
|
||||
return b;
|
||||
|
||||
/*
|
||||
* Btree nodes read in from disk should not have the accessed bit set
|
||||
* initially, so that linear scans don't thrash the cache:
|
||||
*/
|
||||
clear_btree_node_accessed(b);
|
||||
|
||||
bkey_copy(&b->key, k);
|
||||
if (bch2_btree_node_hash_insert(bc, b, level, btree_id)) {
|
||||
/* raced with another fill: */
|
||||
|
||||
Reference in New Issue
Block a user