]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Fix reporting of freed objects from key cache shrinker
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Jun 2024 00:01:34 +0000 (20:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 10 Jun 2024 17:17:16 +0000 (13:17 -0400)
commit2760bfe38826f65b1806f1cc62744404b5917dea
treea674dde0d7c4149127fd4a66a1f79bd5cf9d35bb
parent9ac3e660cac3e29cfc817b6a23735b70f12bd16a
bcachefs: Fix reporting of freed objects from key cache shrinker

We count objects as freed when we move them to the srcu-pending lists
because we're doing the equivalent of a kfree_srcu(); the only
difference is managing the pending list ourself means we can allocate
from the pending list.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_key_cache.c