Skip to content

Commit

Permalink
mm/pagewalk: Use vma_find() instead of vma linked list
Browse files Browse the repository at this point in the history
walk_page_range() no longer uses the one vma linked list reference.

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>
  • Loading branch information
Liam R. Howlett authored and Liam R. Howlett committed Feb 20, 2022
1 parent 91a1401 commit e9036a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/pagewalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ int walk_page_range(struct mm_struct *mm, unsigned long start,
} else { /* inside vma */
walk.vma = vma;
next = min(end, vma->vm_end);
vma = vma->vm_next;
vma = find_vma(mm, vma->vm_end);;

err = walk_page_test(start, next, &walk);
if (err > 0) {
Expand Down

0 comments on commit e9036a3

Please sign in to comment.