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>
This commit is contained in:
Kent Overstreet 2022-06-20 22:26:41 -04:00 • committed by Kent Overstreet
commit 3858536744
2 changed files with 25 additions and 12 deletions