From e1e43d9e34b2012dcd8fba0b1e8484dba674383c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 26 Feb 2023 17:17:35 -0500 Subject: XXX tracepoint --- fs/bcachefs/alloc_foreground.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 492ade62202c..afc3cf64fdff 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -102,6 +102,11 @@ void __bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) { struct bch_dev *ca = ob_dev(c, ob); + if (ob->sectors_free) { + /* trace this */ + pr_info("wasted %u", ob->sectors_free); + } + if (ob->ec) { ec_stripe_new_put(c, ob->ec, STRIPE_REF_io); return; -- cgit v1.2.3