]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mremap: use vma_find_intersection() instead of vma linked list
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 20 Jul 2022 02:18:02 +0000 (02:18 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 6 Sep 2022 19:44:25 +0000 (15:44 -0400)
commitf8c9419a0339764b5f7a9677cfa39d5b829019a9
treea110ecad0a05dab98eabc2381c205fb3b4e6f1b9
parent7aa5dc55734ce0818ffd9e0cba7536742ec37eff
mm/mremap: use vma_find_intersection() instead of vma linked list

Using the vma_find_intersection() call allows for cleaner code and
removes linked list users in preparation of the linked list removal.

Also remove one user of the linked list at the same time in favour of
find_vma().

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
mm/mremap.c