]> 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>
Wed, 20 Oct 2021 19:22:33 +0000 (15:22 -0400)
commit6313b16d6aa8c001df862d0ab29de2a217737fa1
tree96e8aff5e1fadce87c2f76c520eeddacf4e6b1aa
parent3c37d69ab3160e1d956fef584846316fa3f22577
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