]> git.neil.brown.name Git - history.git/commit
[PATCH] hugepage pagetable freeing fix
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:47:37 +0000 (23:47 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:47:37 +0000 (23:47 -0800)
commiteb372d22cb6676e7f00a33889774b094392342a2
tree6d824304e9567b9fec64f83d9a133a3d3b22a526
parent17095c0720d64ca64d090bb4ac553c79dc9c4778
[PATCH] hugepage pagetable freeing fix

From: "Seth, Rohit" <rohit.seth@intel.com>

We recently covered a bug in mm/mmap.c on IA-64.  While unmapping a address
space, unmap_region calls free_pgtables to possibly free the pages that are
used for page tables.  Currently no distinction is made between freeing a
region that is mapped by normal pages vs the pages that are mapped by
hugepages.  Architecture specific code needs to handle cases where PTEs
corresponding to a region that is mapped by hugepages is properly getting
unmapped.  Attached please find a patch that makes the required changes in
generic part of kernel.  We will need to send a separate IA-64 patch to use
this new semantics.  Currently, so not to disturb the PPC (as that is the
only arch that had ARCH_HAS_HUGEPAGE_ONLY_RANGE defined) we are mapping back
the definition of new function hugetlb_free_pgtables to free_pgtables.
include/asm-ppc64/page.h
include/linux/hugetlb.h
mm/mmap.c