* [PATCH] bcachefs: expose reflink_p may_update_opts in sysfs
@ 2025-07-30 5:12 Reed Riley
0 siblings, 0 replies; only message in thread
From: Reed Riley @ 2025-07-30 5:12 UTC (permalink / raw)
To: linux-bcachefs@vger.kernel.org
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-30 5:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30 5:12 [PATCH] bcachefs: expose reflink_p may_update_opts in sysfs Reed Riley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).