[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <389f04288690b44b0ea6c977894dc0592e904c90.camel@redhat.com>
Date: Thu, 07 Jan 2021 14:42:41 +0200
From: Maxim Levitsky <mlevitsk@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: "Darrick J . Wong" <darrick.wong@...cle.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
"open list:FILESYSTEMS (VFS and infrastructure)"
<linux-fsdevel@...r.kernel.org>, Jan Kara <jack@...e.cz>
Subject: Re: [PATCH] block: fallocate: avoid false positive on collision
detection
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@...hat.com>
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
Powered by blists - more mailing lists