From d7d576e5c69c73b80be740118882aab0340808fd Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Thu, 24 Feb 2022 12:49:30 -0500 Subject: [PATCH] nommu fix of Remove the vma linked list Signed-off-by: Liam R. Howlett --- mm/nommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index 5adc5d405c6f0..948393927325f 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -551,7 +551,6 @@ static void put_nommu_region(struct vm_region *region) static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) { struct address_space *mapping; - struct vm_area_struct *prev; MA_STATE(mas, &mm->mm_mt, vma->vm_start, vma->vm_end); BUG_ON(!vma->vm_region); @@ -570,8 +569,6 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) i_mmap_unlock_write(mapping); } - prev = mas_prev(&mas, 0); - mas_reset(&mas); /* add the VMA to the tree */ vma_mas_store(vma, &mas); } -- 2.50.1