]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/mincore.c: use vma_lookup() instead of find_vma()
authorDeming Wang <wangdeming@inspur.com>
Fri, 7 Oct 2022 03:03:45 +0000 (23:03 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:13 +0000 (17:37 -0800)
commit97955f6941f0e7dea64dea22711382daf1db2f76
tree5b6dbcd5e9030c18779ffabd69bc0052de996968
parent6fe7d712d798e9312e3dff69ec3f5f62f4d03a04
mm/mincore.c: 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 the code.

Link: https://lkml.kernel.org/r/20221007030345.5029-1-wangdeming@inspur.com
Signed-off-by: Deming Wang <wangdeming@inspur.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mincore.c