]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xtensa: Remove vma linked list walks
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 4 Jan 2021 19:30:59 +0000 (14:30 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 14 Mar 2022 18:49:46 +0000 (14:49 -0400)
commitf71c9fc1b3d3ddc450017e39cc7a7a8d55d6eca9
treeb86555b8ed2efb426152b51b0155d84328206e66
parent463ffdcf002609b33e08ca72dd4c6a9e6e47c0f5
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