]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nommu fix of Remove the vma linked list
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 24 Feb 2022 17:49:30 +0000 (12:49 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 8 Mar 2022 18:19:14 +0000 (13:19 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/nommu.c

index 5adc5d405c6f0528a1aed8cfe4ce310a00e27445..948393927325ff99770a2f87469aacc1041b2385 100644 (file)
@@ -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);
 }