]> 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>
Tue, 8 Mar 2022 18:19:11 +0000 (13:19 -0500)
commit05c06578798c09e4efd4f2c6b0987c4ae36ac411
tree7741a295f32b71ff51feafebd9de932a2919e33f
parent1701c264b7d32ccfd6c18257b8dbc92f96f12d6c
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