Skip to content

Commit

Permalink
mm/msync: use vma_find() instead of vma linked list
Browse files Browse the repository at this point in the history
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 <Liam.Howlett@Oracle.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
howlett authored and xanmod committed Oct 3, 2022
1 parent 619b900 commit 14cbb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/msync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 14cbb30

Please sign in to comment.