Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: time_stats: add larger units

Filesystems can stay mounted for a very long time, so add some larger
units.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

authored by

Darrick J. Wong and committed by
Kent Overstreet
cdbfa228 f1ca1abf

+3
+3
fs/bcachefs/time_stats.c
··· 17 17 { "s", NSEC_PER_SEC }, 18 18 { "m", (u64) NSEC_PER_SEC * 60}, 19 19 { "h", (u64) NSEC_PER_SEC * 3600}, 20 + { "d", (u64) NSEC_PER_SEC * 3600 * 24}, 21 + { "w", (u64) NSEC_PER_SEC * 3600 * 24 * 7}, 22 + { "y", (u64) NSEC_PER_SEC * ((3600 * 24 * 7 * 365) + (3600 * (24 / 4) * 7))}, /* 365.25d */ 20 23 { "eon", U64_MAX }, 21 24 }; 22 25