]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Use maple tree operations for find_vma_intersection() and find_vma()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 28 Sep 2020 19:50:19 +0000 (15:50 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 26 Nov 2021 19:50:29 +0000 (14:50 -0500)
commitd8d7f6d6b3be9e2896e965bf0fc9c0b7f8bc230f
treec34834acbe4565f6ffec33874f7715ada83b31f3
parent92fd3135b25c05a728604e6f4def8ad382c53437
mm: Use maple tree operations for find_vma_intersection() and find_vma()

Move find_vma_intersection() to mmap.c and change implementation to
maple tree.

When searching for a vma within a range, it is easier to use the maple
tree interface.  This means the find_vma() call changes to a special
case of the find_vma_intersection().

Exported for kvm module.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/mm.h
mm/mmap.c