From d498b6d53d0b6b9bf54d4fc38b4e789515b89a83 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 19 Aug 2022 13:37:31 -0400 Subject: [PATCH] mm/mmap: Remove unused vma_mas_remove() function This is no longer used Signed-off-by: Liam R. Howlett --- mm/mmap.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index d852c75ed3fd..8ac12ef031ed 100644 --- 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. -- 2.49.0