Commit ad5dbe3c authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Don't count "skipped access bit" as touched in btree cache scan

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e92e5056
......@@ -449,6 +449,7 @@ static unsigned long bch2_btree_cache_scan(struct shrinker *shrink,
if (btree_node_accessed(b)) {
clear_btree_node_accessed(b);
bc->not_freed[BCH_BTREE_CACHE_NOT_FREED_access_bit]++;
--touched;;
} else if (!btree_node_reclaim(c, b, true)) {
freed++;
btree_node_data_free(c, b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment