aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bkey_sort.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-12-27 22:11:54 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:55 -0400
commitc043a3303c11cdf53ee98db67cee11931b626e22 (patch)
tree02923ad08073d428d469cfbd3d91ab31e885f065 /fs/bcachefs/bkey_sort.c
parentbcachefs: Add a mempool for the replicas delta list (diff)
downloadlinux-c043a3303c11cdf53ee98db67cee11931b626e22.tar.gz
linux-c043a3303c11cdf53ee98db67cee11931b626e22.zip
bcachefs: Fix bch2_btree_cache_scan()
It was counting nodes on the freed list that it skips - because we want to leave a few so that btree splits don't touch the allocator - as nodes that it touched, meaning that if it was called with <= 3 nodes to reclaim, and those nodes were on the freed list, it would never do any work. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bkey_sort.c')
0 files changed, 0 insertions, 0 deletions