projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db70449
)
riscv: use vma iterator for vdso
author
Liam Howlett <liam.howlett@oracle.com>
Thu, 14 Apr 2022 06:07:24 +0000
(23:07 -0700)
committer
Liam R. Howlett <Liam.Howlett@oracle.com>
Thu, 14 Apr 2022 21:49:49 +0000
(17:49 -0400)
Remove the linked list use in favour of the vma iterator.
Link:
https://lkml.kernel.org/r/20220404143501.2016403-68-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/riscv/kernel/vdso.c
patch
|
blob
|
history
diff --git
a/arch/riscv/kernel/vdso.c
b/arch/riscv/kernel/vdso.c
index a9436a65161a4f29b048e88343107792345ebfec..20e2ae135fb9f6097b31dca0e1e0c25211fe699a 100644
(file)
--- a/
arch/riscv/kernel/vdso.c
+++ b/
arch/riscv/kernel/vdso.c
@@
-116,10
+116,11
@@
int vdso_join_timens(struct task_struct *task, struct time_namespace *ns)
{
struct mm_struct *mm = task->mm;
struct vm_area_struct *vma;
+ VMA_ITERATOR(vmi, mm, 0);
mmap_read_lock(mm);
- for
(vma = mm->mmap; vma; vma = vma->vm_next
) {
+ for
_each_vma(vmi, vma
) {
unsigned long size = vma->vm_end - vma->vm_start;
if (vma_is_special_mapping(vma, vdso_info.dm))