summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/reflink.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-11-13 23:44:13 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:17 +0200
commit61d876c25d65c6732f1db1e7611a158fc2c55be3 (patch)
tree7b66b15fe8f8fa65621363584f68c39002593d86 /fs/bcachefs/reflink.c
parentbcachefs: More enum strings (diff)
downloadlinux-61d876c25d65c6732f1db1e7611a158fc2c55be3.tar.xz
linux-61d876c25d65c6732f1db1e7611a158fc2c55be3.zip
bcachefs: Improve bch2_reflink_p_to_text()
.to_text methods generally ought to print all the value fields. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/reflink.c')
-rw-r--r--fs/bcachefs/reflink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/bcachefs/reflink.c b/fs/bcachefs/reflink.c
index 22230f82b8b9..8dcac7815c9f 100644
--- a/fs/bcachefs/reflink.c
+++ b/fs/bcachefs/reflink.c
@@ -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)