From: Liam R. Howlett Date: Fri, 19 Aug 2022 17:37:31 +0000 (-0400) Subject: mm/mmap: Remove unused vma_mas_remove() function X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=45a0d1f0555463e03eb0faedd9c64b2c47245d1e;p=users%2Fjedix%2Flinux-maple.git mm/mmap: Remove unused vma_mas_remove() function This is no longer used Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index 3e7d4a2bbd61..19b7de1ac212 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.