From: Kirill A. Shutemov Date: Wed, 12 Dec 2012 21:51:02 +0000 (-0800) Subject: thp: setup huge zero page on non-write page fault X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~33^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80371957f09814d25c38733d2d08de47f59a13c2;p=pandora-kernel.git 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 Cc: Andrea Arcangeli Cc: Andi Kleen Cc: "H. Peter Anvin" Cc: Mel Gorman Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed