From: Kirill A. Shutemov Date: Wed, 10 Dec 2014 23:44:22 +0000 (-0800) Subject: thp: do not mark zero-page pmd write-protected explicitly X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~122 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e544a4e74e02108035de69f97fde7bdf19dba978;p=pandora-kernel.git 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" Cc: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed