]> 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>
Fri, 11 Feb 2022 03:38:08 +0000 (22:38 -0500)
commitc939a7e8f659233435d52ef5059e12c2adaa11a7
tree00738bc1c66b7ba2e2c70ac669dc8112a4b0f26d
parent5f3213465d5731e723b83f94c5471f3a26fd6959
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