All of lore.kernel.org
 help / color / mirror / Atom feed
* [3/7] hugetlb: remove unlink_vma()
@ 2002-11-06  2:29 William Lee Irwin III
  0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-11-06  2:29 UTC (permalink / raw)
  To: linux-kernel

This patch removes the unused function unlink_vma().

 hugetlbpage.c |   19 -------------------
 1 files changed, 19 deletions(-)


diff -urpN hugetlbfs-2.5.46-1/arch/i386/mm/hugetlbpage.c hugetlbfs-2.5.46-2/arch/i386/mm/hugetlbpage.c
--- hugetlbfs-2.5.46-1/arch/i386/mm/hugetlbpage.c	2002-11-05 11:00:42.000000000 -0800
+++ hugetlbfs-2.5.46-2/arch/i386/mm/hugetlbpage.c	2002-11-05 11:07:53.000000000 -0800
@@ -261,25 +261,6 @@ void zap_hugepage_range(struct vm_area_s
 	spin_unlock(&mm->page_table_lock);
 }
 
-static void unlink_vma(struct vm_area_struct *mpnt)
-{
-	struct mm_struct *mm = current->mm;
-	struct vm_area_struct *vma;
-
-	vma = mm->mmap;
-	if (vma == mpnt) {
-		mm->mmap = vma->vm_next;
-	} else {
-		while (vma->vm_next != mpnt) {
-			vma = vma->vm_next;
-		}
-		vma->vm_next = mpnt->vm_next;
-	}
-	rb_erase(&mpnt->vm_rb, &mm->mm_rb);
-	mm->mmap_cache = NULL;
-	mm->map_count--;
-}
-
 static struct inode *set_new_inode(unsigned long len, int prot, int flag, int key)
 {
 	struct inode *inode;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-06  2:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06  2:29 [3/7] hugetlb: remove unlink_vma() William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.