Re: [PATCH 16/19] btrfs: wait existing extents before truncating

2019-06-13 Thread Josef Bacik
On Fri, Jun 07, 2019 at 10:10:22PM +0900, Naohiro Aota wrote: > When truncating a file, file buffers which have already been allocated but > not yet written may be truncated. Truncating these buffers could cause > breakage of a sequential write pattern in a block group if the truncated > blocks ar

[PATCH 16/19] btrfs: wait existing extents before truncating

2019-06-07 Thread Naohiro Aota
When truncating a file, file buffers which have already been allocated but not yet written may be truncated. Truncating these buffers could cause breakage of a sequential write pattern in a block group if the truncated blocks are for example followed by blocks allocated to another file. To avoid t