aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2004-06-29 05:26:38 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 05:26:38 -0700
commit425675c4610e62cd63deed66e87198e39e9d79e3 (patch)
tree09bce10443cb7c9ccec609c61f6a6308ecb36b3e /mm
parent10151fb771208dd70c2dad4be4686cc02dbce49a (diff)
downloadhistory-425675c4610e62cd63deed66e87198e39e9d79e3.tar.gz
[PATCH] kill mm_struct.used_hugetlb
mm_struct.used_hugetlb used to eliminate costly find_vma() from follow_page(). Now it is used only in ia64 version of follow_huge_addr(). I know nothing about ia64, but this REGION_NUMBER() looks simple enough to kill used_hugetlb. There is debug version (commented out) of follow_huge_addr() in i386 which looks at used_hugetlb, but it can work without this check. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/mmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 42738ed9029450..f23ec33c8b7d5d 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -317,7 +317,6 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma,
if (mapping)
spin_unlock(&mapping->i_mmap_lock);
- mark_mm_hugetlb(mm, vma);
mm->map_count++;
validate_mm(mm);
}