From: Liam R. Howlett Date: Wed, 20 Jul 2022 02:18:02 +0000 (+0000) Subject: mm/msync: use vma_find() instead of vma linked list X-Git-Tag: howlett/maple/20220906~10 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2c02413d0b10d83d157c997af541bd196e6a1548;p=users%2Fjedix%2Flinux-maple.git mm/msync: use vma_find() instead of vma linked list Remove a single use of the vma linked list in preparation for the removal of the linked list. Uses find_vma() to get the next element. Signed-off-by: Liam R. Howlett Acked-by: Vlastimil Babka Reviewed-by: Davidlohr Bueso --- diff --git a/mm/msync.c b/mm/msync.c index 137d1c104f3e..ac4c9bfea2e7 100644 --- a/mm/msync.c +++ b/mm/msync.c @@ -104,7 +104,7 @@ SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) error = 0; goto out_unlock; } - vma = vma->vm_next; + vma = find_vma(mm, vma->vm_end); } } out_unlock: