]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl: remove vma linked list walk
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Apr 2022 06:07:18 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:47 +0000 (17:49 -0400)
commitff211de0648578e52c575a55dd2dd3bd9baf9fa1
tree6c3e62ca668d326e17f048cc05208a57b4da9f7b
parent71f24e7b6c852e899466ce9f6df64e4571d77d41
cxl: remove vma linked list walk

Use the VMA iterator instead.  This requires a little restructuring of the
surrounding code to hoist the mm to the caller.  That turns
cxl_prefault_one() into a trivial function, so call cxl_fault_segment()
directly.

Link: https://lkml.kernel.org/r/20220404143501.2016403-39-Liam.Howlett@oracle.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/cxl/fault.c