On Fri, Jan 27, 2017 at 09:44:47AM -0800, Darrick J. Wong wrote: > I think I came up with a better idea overnight: take advantage of the > unwritten bit. Currently, all extents in the cow fork are either > delalloc or normal extents. When we allocate the blocks to fill a cow > extent, we'll flag the extent as unwritten. When we go to write the > data to disk, we convert the unwritten extent to a real extent, and the > post-write remap (since it only takes a file offset and length) will > be changed to remap only real, written extents into the data fork. That sounds like a possibility. My other idea was to force COW all direct I/O writes, that way we can't have a mismatch between extents in the data and the COW fork. But so far this is just an idea.. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html