bcachefs: Improve bch2_open_buckets_to_text()

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>
This commit is contained in:
Kent Overstreet 2022-04-10 18:04:24 -04:00 committed by Kent Overstreet
parent ec7ccbde6b
commit 3518e6faef
1 changed files with 3 additions and 3 deletions

View 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[] = {