]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thp: setup huge zero page on non-write page fault
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 15 Nov 2012 02:38:04 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:31:56 +0000 (17:31 +1100)
commit19842aa7f4b35a38bb0f929c07e2f4c309a33f58
tree6bd42b8e7201aa5db4dc95ccd27904ecfd013ef8
parent76f9002bbf4d9338e66bda47e225dced679623cc
thp: setup huge zero page on non-write page fault

All code paths seems covered. Now we can map huge zero page on read page
fault.

We setup it in do_huge_pmd_anonymous_page() if area around fault address
is suitable for THP and we've got read page fault.

If we fail to setup huge zero page (ENOMEM) we fallback to
handle_pte_fault() as we normally do in THP.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c