]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl: remove vma linked list walk
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 14 Apr 2022 06:07:18 +0000 (23:07 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 26 Apr 2022 14:36:39 +0000 (10:36 -0400)
commitdbe1a8c894449ceb7fed4599617e6dffa8940725
tree18e6fbef95ee311c9c2907cfe9444a42c9a17f46
parentfcc0814d5f38f7a32aecdd3ef5b0106205f17b33
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.

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>
drivers/misc/cxl/fault.c