Skip to content
Commit 4b4f0876 authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Kent Overstreet
Browse files

bcachefs: mean_and_variance: put struct mean_and_variance_weighted on a diet



The only caller of this code (time_stats) always knows the weights and
whether or not any information has been collected.  Pass this
information into the mean and variance code so that it doesn't have to
store that information.  This reduces the structure size from 24 to 16
bytes, which shrinks each time_stats counter to 192 bytes from 208.

Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent cdbfa228
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment