Re: [PATCH v3] mm/mmap: Don't unlock VMAs in remap_file_pages()

2021-02-24 Thread David Hildenbrand
On 24.02.21 00:50, 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 Acked-by: Hugh Dickins --- m

Re: [PATCH v3] mm/mmap: Don't unlock VMAs in remap_file_pages()

2021-02-23 Thread Matthew Wilcox
On Tue, Feb 23, 2021 at 11:50:23PM +, 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

[PATCH v3] mm/mmap: Don't unlock VMAs in remap_file_pages()

2021-02-23 Thread Liam Howlett
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 Acked-by: Hugh Dickins --- mm/mmap.c | 18 +- 1 file c