bcachefs: Better inlining in bch2_time_stats_update()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 23 Nov 2022 23:23:48 +0000 (18:23 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
commit30c92ffe4752b10059cfe00cea775d4af2f5196c
treef5c9007da535a9fa8cf53d3e0f0ed8bb417d787b
parentc96f108b053b394d622f56f2bcefeccb32d0394c
bcachefs: Better inlining in bch2_time_stats_update()

Move the actual slowpath off into a new function -
bch2_time_stats_clear_buffer() - and inline
bch2_time_stats_update_one().

Alo, use the new inlined update functions from mean_and_variance.

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