On Tue, Sep 27, 2016 at 07:58:32PM -0700, Darrick J. Wong wrote: > When shrinking a file, the VFS zeroes everything in the associated > page between the new EOF and the previous EOF to avoid leaking data. > If this block is shared we need to CoW it before the VFS does its > zeroing to avoid corrupting the other files. This shouldn't be needed. Zeroing the EOF block goes through the iomap interface, which should handle the COW case properly. -- 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