Re: [PATCH] block: fallocate: avoid false positive on collision detection

2021-01-07 Thread Jan Kara
On Thu 07-01-21 14:40:22, Maxim Levitsky wrote: > Align start and end on page boundaries before calling > invalidate_inode_pages2_range. > > This might allow us to miss a collision if the write and the discard were done > to the same page and do overlap but it is still better than returning

Re: [PATCH] block: fallocate: avoid false positive on collision detection

2021-01-07 Thread Maxim Levitsky
On Thu, 2021-01-07 at 14:40 +0200, Maxim Levitsky wrote: > Align start and end on page boundaries before calling > invalidate_inode_pages2_range. > > This might allow us to miss a collision if the write and the discard were done > to the same page and do overlap but it is still better than

[PATCH] block: fallocate: avoid false positive on collision detection

2021-01-07 Thread Maxim Levitsky
Align start and end on page boundaries before calling invalidate_inode_pages2_range. This might allow us to miss a collision if the write and the discard were done to the same page and do overlap but it is still better than returning -EBUSY if those writes didn't overlap. Signed-off-by: Maxim