]> 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>
Thu, 14 Apr 2022 06:07:22 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 26 Apr 2022 14:36:40 +0000 (10:36 -0400)
commit23ca62ddb5b1d79b197bcde7f53a259a5c1676e8
tree5ac5f8cfcfb456e723dd2fe1c668eaa6d9e3a526
parentc3124e31f1eb4c58699ca06c0c5a7012ed804545
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: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/mempolicy.c