]> 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>
Fri, 11 Feb 2022 03:38:09 +0000 (22:38 -0500)
commit320bfda05e1085336027b42acd50877bde89cd60
tree6cdc248ed9c5b2db0d0591102aa5246483ef631a
parent3c2c59f357c2aaa6f65af329d76e56b4da06fca4
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