bcachefs: Improve bch2_reflink_p_to_text()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 13 Nov 2021 22:44:13 +0000 (17:44 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:17 +0000 (17:09 -0400)
.to_text methods generally ought to print all the value fields.

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

index 22230f82b8b9811f1f3960e03d200f389cd30ad2..8dcac7815c9f2ede42f1dcd157ef90939356e7cd 100644 (file)
@@ -44,7 +44,10 @@ void bch2_reflink_p_to_text(struct printbuf *out, struct bch_fs *c,
 {
        struct bkey_s_c_reflink_p p = bkey_s_c_to_reflink_p(k);
 
-       pr_buf(out, "idx %llu", le64_to_cpu(p.v->idx));
+       pr_buf(out, "idx %llu front_pad %u back_pad %u",
+              le64_to_cpu(p.v->idx),
+              le32_to_cpu(p.v->front_pad),
+              le32_to_cpu(p.v->back_pad));
 }
 
 bool bch2_reflink_p_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r)