]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: Remove unused vma_mas_remove() function
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 19 Aug 2022 17:37:31 +0000 (13:37 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 26 Aug 2022 17:57:55 +0000 (13:57 -0400)
This is no longer used

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mmap.c

index d852c75ed3fd466594acb07f4b5a966e2cde4d47..8ac12ef031ed9ff58d7e9d52fd8c3e7912d1a774 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -435,23 +435,6 @@ void vma_mas_store(struct vm_area_struct *vma, struct ma_state *mas)
        mas_store_prealloc(mas, vma);
 }
 
-/*
- * vma_mas_remove() - Remove a VMA from the maple tree.
- * @vma: The vm_area_struct
- * @mas: The maple state
- *
- * Efficient way to remove a VMA from the maple tree when the @mas has already
- * been established and points to the correct location.
- * Note: the end address is inclusive in the maple tree.
- */
-void vma_mas_remove(struct vm_area_struct *vma, struct ma_state *mas)
-{
-       trace_vma_mas_szero(mas->tree, vma->vm_start, vma->vm_end - 1);
-       mas->index = vma->vm_start;
-       mas->last = vma->vm_end - 1;
-       mas_store_prealloc(mas, NULL);
-}
-
 /*
  * vma_mas_szero() - Set a given range to zero.  Used when modifying a
  * vm_area_struct start or end.