From: Liam R. Howlett Date: Thu, 24 Feb 2022 17:49:30 +0000 (-0500) Subject: nommu fix of Remove the vma linked list X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d7d576e5c69c73b80be740118882aab0340808fd;p=users%2Fjedix%2Flinux-maple.git nommu fix of Remove the vma linked list Signed-off-by: Liam R. Howlett --- diff --git a/mm/nommu.c b/mm/nommu.c index 5adc5d405c6f..948393927325 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); }