On Wed, Feb 12, 2025 at 01:34:06PM +1030, Qu Wenruo wrote: > The test case passes on the following fses: > - ext4 > - xfs > - btrfs with "nodatasum" mount option > No data checksum to bother. > > - btrfs with default "datasum" mount option and the fix "btrfs: always > fallback to buffered write if the inode requires checksum" > This makes btrfs to fallback on buffered IO so the contents won't > change during writeback of page cache. > > And fails on the following fses: > > - btrfs with default "datasum" mount option and without the fix > Expected. It also fails (as expected) for XFS on a T10-DIF capable device. The test looks good to me: Reviewed-by: Christoph Hellwig <hch@xxxxxx>