bcachefs: Add a tracepoint for the btree cache shrinker
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 28 Dec 2021 01:45:07 +0000 (20:45 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000 (17:09 -0400)
commitc7ce813fe49a58344ba11219c0bd3a2fdb2e8b9e
tree7313f7c84a4578da61d9ac25836cf36fd5b13c93
parentd93cf6858fe67a84e90af76994a2fe4b390c0a0b
bcachefs: Add a tracepoint for the btree cache shrinker

This is to help with diagnosing why the btree node can doesn't seem to
be shrinking - we've had issues in the past with granularity/batch size,
since btree nodes are so big.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_cache.c
fs/bcachefs/trace.h