]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xtensa: remove vma linked list walks
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Apr 2022 06:07:18 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:47 +0000 (17:49 -0400)
commit71f24e7b6c852e899466ce9f6df64e4571d77d41
tree3a8f8c7cce4c279ac196a97dd76dc47130bdbf92
parentb0c19790e399ee2e9e8a88fb69de47d54081a921
xtensa: remove vma linked list walks

Use the VMA iterator instead.  Since VMA can no longer be NULL in the
loop, then deal with out-of-memory outside the loop.  This means a
slightly longer run time in the failure case (-ENOMEM) - it will run to
the end of the VMAs before erroring instead of in the middle of the loop.

Link: https://lkml.kernel.org/r/20220404143501.2016403-38-Liam.Howlett@oracle.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/xtensa/kernel/syscall.c