bcachefs: time_stats: split stats-with-quantiles into a separate structure
authorDarrick J. Wong <djwong@kernel.org>
Thu, 1 Feb 2024 20:41:42 +0000 (12:41 -0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:38:01 +0000 (21:38 -0400)
commit273960b8f374b95ebd234a99607b7887f515c791
treeb50ec6f9658860cb3930b675b4b8cf5a9937bf2b
parent4b4f0876ab74167cc402ccd5ce9154e7dc666829
bcachefs: time_stats: split stats-with-quantiles into a separate structure

Currently, struct time_stats has the optional ability to quantize the
information that it collects.  This is /probably/ useful for callers who
want to see quantized information, but it more than doubles the size of
the structure from 224 bytes to 464.  For users who don't care about
that (e.g. upcoming xfs patches) and want to avoid wasting 240 bytes per
counter, split the two into separate pieces.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/bcachefs.h
fs/bcachefs/io_write.c
fs/bcachefs/super.c
fs/bcachefs/sysfs.c
fs/bcachefs/time_stats.c
fs/bcachefs/time_stats.h
fs/bcachefs/util.c