]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mempolicy: Use vma iterator & maple state instead of vma linked list
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 4 Jan 2021 19:59:52 +0000 (14:59 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 8 Mar 2022 18:19:13 +0000 (13:19 -0500)
commit5b00ef1718c00ff567fb0b774c058a51fe91aa2b
treebaf8300eba870690073cd9dbba26fb4f54df7457
parent27a6b1eeabfe0a626fe826de7bced603d74a81c1
mm/mempolicy: Use vma iterator & maple state instead of vma linked list

Reworked the way mbind_range() finds the first VMA to reuse the maple
state and limit the number of tree walks needed.

Note, this drops the VM_BUG_ON(!vma) call, which would catch a start
address higher than the last VMA.  The code was written in a way that
allowed no VMA updates to occur and still return success.  There should
be no functional change to this scenario with the new code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mempolicy.c