summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-31 17:08:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-05-21 20:13:37 -0400
commit7f65d1cf5c30cf3e634cd8a02ea8563f7af53e89 (patch)
treec35ac3f5b4709db3acdf8e418bf3da5f54080c5b /fs/bcachefs/alloc_foreground.h
parentbcachefs: alloc_request.usage (diff)
downloadlinux-7f65d1cf5c30cf3e634cd8a02ea8563f7af53e89.tar.gz
linux-7f65d1cf5c30cf3e634cd8a02ea8563f7af53e89.zip
bcachefs: alloc_request.counters
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.h')
-rw-r--r--fs/bcachefs/alloc_foreground.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_foreground.h b/fs/bcachefs/alloc_foreground.h
index ffee1b8894f0..5d311a41d65f 100644
--- a/fs/bcachefs/alloc_foreground.h
+++ b/fs/bcachefs/alloc_foreground.h
@@ -41,7 +41,24 @@ struct alloc_request {
struct bch_devs_mask devs_may_alloc;
/* bch2_bucket_alloc_set_trans(): */
- struct bch_dev_usage usage;
+ struct bch_dev_usage usage;
+
+ /* bch2_bucket_alloc_trans(): */
+ enum {
+ BTREE_BITMAP_NO,
+ BTREE_BITMAP_YES,
+ BTREE_BITMAP_ANY,
+ } btree_bitmap;
+
+ struct {
+ u64 buckets_seen;
+ u64 skipped_open;
+ u64 skipped_need_journal_commit;
+ u64 need_journal_commit;
+ u64 skipped_nocow;
+ u64 skipped_nouse;
+ u64 skipped_mi_btree_bitmap;
+ } counters;
};
struct dev_alloc_list bch2_dev_alloc_list(struct bch_fs *,