summaryrefslogtreecommitdiff
path: root/libbcachefs/bcachefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/bcachefs.h')
-rw-r--r--libbcachefs/bcachefs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbcachefs/bcachefs.h b/libbcachefs/bcachefs.h
index 31e387b1..8ffdb4de 100644
--- a/libbcachefs/bcachefs.h
+++ b/libbcachefs/bcachefs.h
@@ -319,6 +319,8 @@ BCH_DEBUG_PARAMS_DEBUG()
#undef BCH_DEBUG_PARAM
#endif
+#define BCH_LOCK_TIME_NR 128
+
#define BCH_TIME_STATS() \
x(btree_node_mem_alloc) \
x(btree_node_split) \
@@ -463,6 +465,7 @@ struct bch_dev {
/* Allocator: */
u64 new_fs_bucket_idx;
+ u64 bucket_alloc_trans_early_cursor;
unsigned nr_open_buckets;
unsigned nr_btree_reserve;
@@ -528,6 +531,11 @@ struct btree_debug {
unsigned id;
};
+struct lock_held_stats {
+ struct time_stats times[BCH_LOCK_TIME_NR];
+ const char *names[BCH_LOCK_TIME_NR];
+};
+
struct bch_fs_pcpu {
u64 sectors_available;
};
@@ -921,6 +929,8 @@ struct bch_fs {
bool promote_whole_extents;
struct time_stats times[BCH_TIME_STAT_NR];
+
+ struct lock_held_stats lock_held_stats;
};
static inline void bch2_set_ra_pages(struct bch_fs *c, unsigned ra_pages)