summaryrefslogtreecommitdiffstats
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@Oracle.com>2023-01-20 11:26:08 -0500
committerAndrew Morton <akpm@linux-foundation.org>2023-02-09 16:51:31 -0800
commitb62b633e048bbddef90b2e55d2e33823187b425f (patch)
tree90f8665499bcf045dc383e5787d639709535b94f /include/linux/mm_types.h
parent17dc622c7b0f94e49bed030726df4db12ecaa6b5 (diff)
downloadlinux-stable-b62b633e048bbddef90b2e55d2e33823187b425f.tar.gz
linux-stable-b62b633e048bbddef90b2e55d2e33823187b425f.tar.bz2
linux-stable-b62b633e048bbddef90b2e55d2e33823187b425f.zip
mm: expand vma iterator interface
Add wrappers for the maple tree to the vma iterator. This will provide type safety at compile time. Link: https://lkml.kernel.org/r/20230120162650.984577-8-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mm_types.h')
-rw-r--r--include/linux/mm_types.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 452920467223..5ca11c6c46e8 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -849,9 +849,7 @@ struct vma_iterator {
static inline void vma_iter_init(struct vma_iterator *vmi,
struct mm_struct *mm, unsigned long addr)
{
- vmi->mas.tree = &mm->mm_mt;
- vmi->mas.index = addr;
- vmi->mas.node = MAS_START;
+ mas_init(&vmi->mas, &mm->mm_mt, addr);
}
struct mmu_gather;