On Mon, Mar 17, 2025 at 09:17:10AM +0000, John Garry wrote:maybe when you see the code, you could have a better suggestion, but I'll keep the wording the same verbatim for now.
Given that this is where the policy is implemented now, this comment:
/*
* COW fork extents are supposed to remain unwritten until we're ready
* to initiate a disk write. For direct I/O we are going to write the
* data and need the conversion, but for buffered writes we're done.
*/
from xfs_reflink_convert_unwritten should probably move here now.
ok, fine, I can relocate this comment to xfs_direct_write_iomap_begin(),
but please let me know if you prefer an rewording.
I have to admit I found the wording a bit odd, but I failed to come up
with something significantly better.