summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-04 06:56:14 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-05 21:13:57 +0300
commitda4aa3b00123b8a588d23482993751e88bbaa324 (patch)
tree5ed2cbb9d4b7d7b249fb3de8504cf0157dd81abd /fs
parent769b3600495b8a2ea3c2136121800ce6b566a457 (diff)
downloadlinux-da4aa3b00123b8a588d23482993751e88bbaa324.tar.xz
bcachefs: bch2_stripe_to_text() now prints ptr gens
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/ec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c
index 5da0e7a69323..62a3ccd71dc4 100644
--- a/fs/bcachefs/ec.c
+++ b/fs/bcachefs/ec.c
@@ -150,6 +150,7 @@ void bch2_stripe_to_text(struct printbuf *out, struct bch_fs *c,
prt_printf(out, " %u:%llu:%u", ptr->dev, b, offset);
if (i < nr_data)
prt_printf(out, "#%u", stripe_blockcount_get(s, i));
+ prt_printf(out, " gen %u", ptr->gen);
if (ptr_stale(ca, ptr))
prt_printf(out, " stale");
}