]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mremap:: use vma_lookup() instead of find_vma()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:42:41 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:05 +0000 (15:57 -0700)
commit0e6799db9672dcdc995b0f4bfa5cde4420868c93
treebe4e04f5269f4ba0ac104464f6ce9db376a0f0ed
parent360cd06173d6f139581b6b7cf322f66884860e0f
mm/mremap:: use vma_lookup() instead of find_vma()

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

Link: https://lkml.kernel.org/r/20220312083118.48284-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
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/mremap.c