diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-19 21:33:38 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-09 15:41:49 +0200 |
commit | fdbc9c390ade238383f5a24e4b32e49550dc90e4 (patch) | |
tree | a6a9d97fa3fc8826cde5ed5611b3e1ea7ba06e4f /fs/bcachefs/time_stats.h | |
parent | bcachefs: Drop memalloc_nofs_save() in bch2_btree_node_mem_alloc() (diff) | |
download | linux-fdbc9c390ade238383f5a24e4b32e49550dc90e4.tar.xz linux-fdbc9c390ade238383f5a24e4b32e49550dc90e4.zip |
bcachefs: bch2_time_stats_reset()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/time_stats.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/time_stats.h b/fs/bcachefs/time_stats.h index 5df61403744b..dc6493f7bbab 100644 --- a/fs/bcachefs/time_stats.h +++ b/fs/bcachefs/time_stats.h @@ -70,6 +70,7 @@ struct time_stat_buffer { struct bch2_time_stats { spinlock_t lock; bool have_quantiles; + struct time_stat_buffer __percpu *buffer; /* all fields are in nanoseconds */ u64 min_duration; u64 max_duration; @@ -87,7 +88,6 @@ struct bch2_time_stats { struct mean_and_variance_weighted duration_stats_weighted; struct mean_and_variance_weighted freq_stats_weighted; - struct time_stat_buffer __percpu *buffer; }; struct bch2_time_stats_quantiles { @@ -142,6 +142,7 @@ static inline bool track_event_change(struct bch2_time_stats *stats, bool v) return false; } +void bch2_time_stats_reset(struct bch2_time_stats *); void bch2_time_stats_exit(struct bch2_time_stats *); void bch2_time_stats_init(struct bch2_time_stats *); |