mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 01:59:54 -04:00
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:
committed by
Kent Overstreet
parent
ec7ccbde6b
commit
3518e6faef
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user