bcachefs: Improve bch2_open_buckets_to_text()
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 10 Apr 2022 22:04:24 +0000 (18:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
This patch updates bch2_open_buckets_to_text() to include the device and
bucket the open_bucket owns.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_foreground.c

index 14162dd4d6965901544b7eb94a1ef74192755e59..d871e1f11f296be50613d344caca3a677281d7cd 100644 (file)
@@ -1381,14 +1381,14 @@ void bch2_open_buckets_to_text(struct printbuf *out, struct bch_fs *c)
             ob++) {
                spin_lock(&ob->lock);
                if (ob->valid && !ob->on_partial_list) {
-                       pr_buf(out, "%zu ref %u type %s\n",
+                       pr_buf(out, "%zu ref %u type %s %u:%llu:%u\n",
                               ob - c->open_buckets,
                               atomic_read(&ob->pin),
-                              bch2_data_types[ob->data_type]);
+                              bch2_data_types[ob->data_type],
+                              ob->dev, ob->bucket, ob->gen);
                }
                spin_unlock(&ob->lock);
        }
-
 }
 
 static const char * const bch2_write_point_states[] = {