diff options
author | Liam R. Howlett <[email protected]> | 2022-09-06 19:49:01 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-09-26 19:46:23 -0700 |
commit | 3547481831acd99d6f9c3b2cef16f269e6eaad9c (patch) | |
tree | 9770c5f58b3ff40f8465d1c4404ba815692c5c3f | |
parent | a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 (diff) |
mm/madvise: use vma_find() instead of vma linked list
madvise_walk_vmas() no longer uses linked list.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liam R. Howlett <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Tested-by: Yu Zhao <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: David Howells <[email protected]>
Cc: "Matthew Wilcox (Oracle)" <[email protected]>
Cc: SeongJae Park <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | mm/madvise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index 4f86eb7f554d..a3fc4cd32ed3 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1245,7 +1245,7 @@ int madvise_walk_vmas(struct mm_struct *mm, unsigned long start, if (start >= end) break; if (prev) - vma = prev->vm_next; + vma = find_vma(mm, prev->vm_end); else /* madvise_remove dropped mmap_lock */ vma = find_vma(mm, start); } |