]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] hugetlb: remove unlink_vma()
authorAndrew Morton <akpm@digeo.com>
Sun, 10 Nov 2002 10:01:45 +0000 (02:01 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 10 Nov 2002 10:01:45 +0000 (02:01 -0800)
Patch from William Lee Irwin III <wli@holomorphy.com>

This patch removes the unused function unlink_vma().

arch/i386/mm/hugetlbpage.c

index d8d922bf597798db71b6ed487a8d65a95728ab6b..32706e3d878c58282754c2464ec596a7ef47dc29 100644 (file)
@@ -294,25 +294,6 @@ void zap_hugepage_range(struct vm_area_struct *vma, unsigned long start, unsigne
        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;