]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Change find_vma_intersection to maple tree and make find_vma to
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 Jan 2021 14:28:14 +0000 (09:28 -0500)
commit7bdb8775bcbe11e636d2062c10990a0cfaf490d3
treef3f87ee49d4f70396ccde67d5c9334e5e1db078d
parente58fd74543c4c2aed89f32a049d4bef9961bcd0a
mm: Change find_vma_intersection to maple tree and make find_vma to
inline.

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