bcachefs: Bucket invalidate path improvements
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 21 Jun 2022 02:26:41 +0000 (22:26 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000 (17:09 -0400)
commit38585367442f09606d7a529be3290f2fd4cbcf84
tree4550e27d98ac3080f390720ed11723f66b7fd552
parent962ad1a76669443126c6531352380f56d6e5d7d2
bcachefs: Bucket invalidate path improvements

 - invalidate_one_bucket() now returns 1 when we don't have any buckets
   on this device to invalidate, ensuring we don't spin
 - the tracepoint invocation is moved to after the transaction commit,
   and we now include the number of cached sectors in the tracepoint

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