summaryrefslogtreecommitdiff
path: root/fs/bcachefs/alloc_foreground.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
-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;