mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
bcachefs: fix warning about uninitialized time_stats
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e34ec13a56
commit
ef23397c30
1 changed files with 3 additions and 3 deletions
|
@ -447,9 +447,9 @@ void __bch2_time_stats_update(struct bch2_time_stats *stats, u64 start, u64 end)
|
|||
{
|
||||
unsigned long flags;
|
||||
|
||||
WARN_RATELIMIT(!stats->min_duration || !stats->min_freq,
|
||||
"time_stats: min_duration = %llu, min_freq = %llu",
|
||||
stats->min_duration, stats->min_freq);
|
||||
WARN_ONCE(!stats->duration_stats_weighted.weight ||
|
||||
!stats->freq_stats_weighted.weight,
|
||||
"uninitialized time_stats");
|
||||
|
||||
if (!stats->buffer) {
|
||||
spin_lock_irqsave(&stats->lock, flags);
|
||||
|
|
Loading…
Add table
Reference in a new issue