The patch titled Subject: thp: do not mark zero-page pmd write-protected explicitly has been added to the -mm tree. Its filename is thp-do-not-mark-zero-page-pmd-write-protected-explicitly.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/thp-do-not-mark-zero-page-pmd-write-protected-explicitly.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/thp-do-not-mark-zero-page-pmd-write-protected-explicitly.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> Subject: thp: do not mark zero-page pmd write-protected explicitly Zero pages can be used only in anonymous mappings, which never have writable vma->vm_page_prot: see protection_map in mm/mmap.c and __PX1X definitions. Let's drop redundant pmd_wrprotect() in set_huge_zero_page(). Signed-off-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) diff -puN mm/huge_memory.c~thp-do-not-mark-zero-page-pmd-write-protected-explicitly mm/huge_memory.c --- a/mm/huge_memory.c~thp-do-not-mark-zero-page-pmd-write-protected-explicitly +++ a/mm/huge_memory.c @@ -789,7 +789,6 @@ static bool set_huge_zero_page(pgtable_t if (!pmd_none(*pmd)) return false; entry = mk_pmd(zero_page, vma->vm_page_prot); - entry = pmd_wrprotect(entry); entry = pmd_mkhuge(entry); pgtable_trans_huge_deposit(mm, pmd, pgtable); set_pmd_at(mm, haddr, pmd, entry); _ Patches currently in -mm which might be from kirill.shutemov@xxxxxxxxxxxxxxx are mm-free-compound-page-with-correct-order.patch mm-thp-fix-collapsing-of-hugepages-on-madvise.patch mm-verify-compound-order-when-freeing-a-page.patch thp-do-not-mark-zero-page-pmd-write-protected-explicitly.patch mm-introduce-do_shared_fault-and-drop-do_fault-fix-fix.patch do_shared_fault-check-that-mmap_sem-is-held.patch mm-replace-remap_file_pages-syscall-with-emulation.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html