summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-26 17:17:35 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-29 13:44:33 -0400
commite1e43d9e34b2012dcd8fba0b1e8484dba674383c (patch)
tree6f5f4e81902782a396780a24d33021ba08cd2e40
parent596dd200e6fbd7e2e41d415a0bf3fa30029aee11 (diff)
XXX tracepoint
-rw-r--r--fs/bcachefs/alloc_foreground.c5
1 files changed, 5 insertions, 0 deletions
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;