remap_file_pages: Use vma_lookup() instead of find_vma()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 2 Sep 2021 21:56:49 +0000 (14:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:14 +0000 (09:58 -0700)
commit9b593cb20283e68e5e65b09ca10038935297f05b
tree610de4c811972336130633cc814d80ef6c3667fb
parent5b78ed24e8ec48602c1d6f5a188e58d000c81e2b
remap_file_pages: Use vma_lookup() instead of find_vma()

Using vma_lookup() verifies the start address is contained in the found vma.
This results in easier to read code.

Link: https://lkml.kernel.org/r/20210817135234.1550204-1-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c