projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6404dcc
)
bcachefs: Improve bch2_reflink_p_to_text()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Sat, 13 Nov 2021 22:44:13 +0000
(17:44 -0500)
committer
Kent 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
patch
|
blob
|
history
diff --git
a/fs/bcachefs/reflink.c
b/fs/bcachefs/reflink.c
index
22230f8
..
8dcac78
100644
(file)
--- 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)