]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl: remove vma linked list walk
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Jul 2022 02:17:56 +0000 (02:17 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 6 Sep 2022 19:44:24 +0000 (15:44 -0400)
commitb357da823814607cda431660b9ad764c1c263588
tree51601e96eac7e09aaef74dc5b578e2837b8f7c77
parent7fa644ffb975bd25dad12d6682a15e3f9619df96
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