summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-24 04:43:33 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-06 05:24:19 +0100
commit89056f245bce2cb833726927783337c5dc59eac0 (patch)
tree18c9fbcece8b7322d7e215057077f2b762acba99 /fs/bcachefs/bcachefs.h
parentbcachefs: btree_trans always has stats (diff)
downloadlinux-89056f245bce2cb833726927783337c5dc59eac0.tar.xz
linux-89056f245bce2cb833726927783337c5dc59eac0.zip
bcachefs: track transaction durations
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index 53a2624176ab..840f605eff1f 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -647,6 +647,7 @@ struct btree_debug {
#define BCH_TRANSACTIONS_NR 128
struct btree_transaction_stats {
+ struct bch2_time_stats duration;
struct bch2_time_stats lock_hold_times;
struct mutex lock;
unsigned nr_max_paths;