From: Kirill A. Shutemov Date: Wed, 12 Dec 2012 21:50:54 +0000 (-0800) Subject: thp: do_huge_pmd_wp_page(): handle huge zero page X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~33^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b4796dede916de74b21fbd637588da6a99a7ec;p=pandora-kernel.git thp: do_huge_pmd_wp_page(): handle huge zero page On write access to huge zero page we alloc a new huge page and clear it. If ENOMEM, graceful fallback: we create a new pmd table and set pte around fault address to newly allocated normal (4k) page. All other ptes in the pmd set to normal zero page. Signed-off-by: Kirill A. Shutemov Cc: Andrea Arcangeli Cc: Andi Kleen Cc: "H. Peter Anvin" Cc: Mel Gorman Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed