aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/bcachefs/time_stats.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-25 10:52:00 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-28 22:31:47 -0400
commitdaa771332e1e074c22b706e981de28d384577268 (patch)
treec95e3e7038b505ba7838ffc921ed6b8525b8abc4 /fs/bcachefs/time_stats.h
parentbcachefs: Fix bch2_fs_get_tree() error path (diff)
downloadwireguard-linux-daa771332e1e074c22b706e981de28d384577268.tar.xz
wireguard-linux-daa771332e1e074c22b706e981de28d384577268.zip
bcachefs: bch2_time_stats_init_no_pcpu()
Add a mode to disable automatic switching to percpu mode, useful when a time_stats will only be used by one thread and we don't want to have to flush the percpu buffers. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/time_stats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/time_stats.h b/fs/bcachefs/time_stats.h
index dc6493f7bbab..eddb0985bab4 100644
--- a/fs/bcachefs/time_stats.h
+++ b/fs/bcachefs/time_stats.h
@@ -145,6 +145,7 @@ static inline bool track_event_change(struct bch2_time_stats *stats, bool v)
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 *);
+void bch2_time_stats_init_no_pcpu(struct bch2_time_stats *);
static inline void bch2_time_stats_quantiles_exit(struct bch2_time_stats_quantiles *statq)
{