diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2014-12-10 15:44:22 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:41:08 -0800 |
commit | e544a4e74e02108035de69f97fde7bdf19dba978 (patch) | |
tree | fb19a9556d16189673cd0d416a57cbf4026f3405 /mm/memcontrol.c | |
parent | b047501cd9f11d5e1d54ea0f90e2b10754021a0e (diff) | |
download | lwn-e544a4e74e02108035de69f97fde7bdf19dba978.tar.gz lwn-e544a4e74e02108035de69f97fde7bdf19dba978.zip |
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>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions