]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xtensa: remove vma linked list walks
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 14 Apr 2022 06:07:18 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 26 Apr 2022 14:36:39 +0000 (10:36 -0400)
commitfcc0814d5f38f7a32aecdd3ef5b0106205f17b33
tree1387d356a1381b6fd637db6114154e652b40ffd6
parented5e3d828941d5706efbc283db049f71b5e35f35
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.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
arch/xtensa/kernel/syscall.c