Surfacing this will potentially allow userspace utilities to reason about which 
inodes control the propagation of bcachefs options to reflink_v extents.

---
 fs/bcachefs/reflink.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/bcachefs/reflink.c b/fs/bcachefs/reflink.c
index 92b90cfe622b9..84218efa1029e 100644
--- a/fs/bcachefs/reflink.c
+++ b/fs/bcachefs/reflink.c
@@ -65,6 +65,9 @@ void bch2_reflink_p_to_text(struct printbuf *out, struct 
bch_fs *c,
               le32_to_cpu(p.v->front_pad),
               le32_to_cpu(p.v->back_pad));

+       if (REFLINK_P_MAY_UPDATE_OPTIONS(p.v))
+               prt_str(out, " may_update_opts");
+
        if (REFLINK_P_ERROR(p.v))
                prt_str(out, " error");
 }
--
2.50.0

Reply via email to