aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-09-06 19:48:55 +0000
committerAndrew Morton <akpm@linux-foundation.org>2022-09-26 19:46:20 -0700
commit49c40fb4b826c90036f04abf583bb4cb5ba3d203 (patch)
treebdfa035e5a1df6f3146297978ebf6f019d5a81ee /drivers/misc/cxl
parentx86: remove vma linked list walks (diff)
downloadlinux-dev-49c40fb4b826c90036f04abf583bb4cb5ba3d203.tar.xz
linux-dev-49c40fb4b826c90036f04abf583bb4cb5ba3d203.zip
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/20220906194824.2110408-37-Liam.Howlett@oracle.com Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Tested-by: Yu Zhao <yuzhao@google.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Hildenbrand <david@redhat.com> Cc: David Howells <dhowells@redhat.com> Cc: SeongJae Park <sj@kernel.org> Cc: Sven Schnelle <svens@linux.ibm.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/misc/cxl')
0 files changed, 0 insertions, 0 deletions