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

From: Maxim Levitsky
Date: Thu Jan 07 2021 - 07:45:19 EST

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 returning -EBUSY
> if those writes didn't overlap.
> Signed-off-by: Maxim Levitsky <mlevitsk@xxxxxxxxxx>

This is my attempt to fix this issue. I am not 100% sure
that this is the right solution though.

Any feedback is welcome!

Best regards,
Maxim Levitsky