thp: do not mark zero-page pmd write-protected explicitly
authorKirill A. Shutemov <kirill@shutemov.name>
Wed, 10 Dec 2014 23:44:22 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:08 +0000 (17:41 -0800)
commite544a4e74e02108035de69f97fde7bdf19dba978
treefb19a9556d16189673cd0d416a57cbf4026f3405
parentb047501cd9f11d5e1d54ea0f90e2b10754021a0e
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.name>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c