Re: [PATCH v3] mm/mmap: Don't unlock VMAs in remap_file_pages()
From: Matthew Wilcox
Date: Tue Feb 23 2021 - 21:51:12 EST
On Tue, Feb 23, 2021 at 11:50:23PM +0000, Liam Howlett wrote:
> Since this call uses MAP_FIXED, do_mmap() will munlock the necessary
> range. There is also an error in the loop test expression which will
> evaluate as false and the loop body has never execute.
>
> Signed-off-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx>
> Acked-by: Hugh Dickins <hughd@xxxxxxxxxx>
Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>