Commit b2f83e76 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Btree key cache shrinker fix



The shrinker assumes freed key cache items are ordered by age, so that
it doesn't have to scan the full list to find items that are old enough
(according to the srcu code) to be freed.

But percpu freelists broke this ordering; this patch fixes this by
ensuring we insert items into the proper position.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent be75bb7a
Supports Markdown
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