bcachefs: bucket_alloc_fail tracepoint should only fire when we have to block
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Oct 2022 11:07:28 +0000 (07:07 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commitadf16c6dfa279fee088a85bac9d602f282699915
tree732b8a17f658fb342383bb7f2bc7c1f798498842
parent307e3c13192002f684bdfc23865a57274e6bb4ad
bcachefs: bucket_alloc_fail tracepoint should only fire when we have to block

We don't want to fire the bucket_alloc_fail tracepoint on transaction
restart, when we can retry immediately - only when we the allocation
actually has to block.

Also, switch from sched_clock() to local_clock(), as we've been doing
elsewhere.

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