]> 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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 30 Oct 2021 03:38:43 +0000 (23:38 -0400)
commit9baf537f091ad9504d0af038af671bf749d2a30e
tree08a9e7483b098c0501efbdb6664bcc19ffbbbaeb
parentbca79a5eebdfffe9e575b4344544a6feea914dbb
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