mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02: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:
parent
49a5192c0e
commit
b819f30855
|
|
@ -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: */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user