projects
/
linux.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 22230f82b8b9811f1f3960e03d200f389cd30ad2..8dcac7815c9f2ede42f1dcd157ef90939356e7cd 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)