[PATCH 04/11] xfs: set IOMAP_F_NEW more carefully

2019-10-06 Thread Christoph Hellwig
Don't set IOMAP_F_NEW if we COW over and existing allocated range, as these aren't strictly new allocations. This is required to be able to use IOMAP_F_NEW to zero newly allocated blocks, which is required for the iomap code to fully support file systems that don't do delayed allocations or use un

[PATCH 04/11] xfs: set IOMAP_F_NEW more carefully

2019-10-01 Thread Christoph Hellwig
Don't set IOMAP_F_NEW if we COW over and existing allocated range, as these aren't strictly new allocations. This is required to be able to use IOMAP_F_NEW to zero newly allocated blocks, which is required for the iomap code to fully support file systems that don't do delayed allocations or use un