commit | 93b4796dede916de74b21fbd637588da6a99a7ec | [log] [tgz] |
---|---|---|
author | Kirill A. Shutemov <[email protected]> | Wed Dec 12 13:50:54 2012 -0800 |
committer | Linus Torvalds <[email protected]> | Wed Dec 12 17:38:31 2012 -0800 |
tree | 3833de6051bb1b8d361a614743aafa56b43902e1 | |
parent | fc9fe822f7112db23e51e2be3b886f5d8f0afdb6 [diff] |
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 <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Andi Kleen <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Mel Gorman <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>