bcachefs: time_stats: Check for last_event == 0 when updating freq stats
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 2 Feb 2024 02:01:02 +0000 (21:01 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 5 Feb 2024 06:16:31 +0000 (01:16 -0500)
commit7b508b323b2ec45be59769bd4e4aeba729c52cf6
treebc6794a2bd18458cc54f7f0eeea0ecfb512af437
parentdd839f31d7cd5e04f4111a219024268c6f6973f0
bcachefs: time_stats: Check for last_event == 0 when updating freq stats

This fixes spurious outliers in the frequency stats.

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