]> git.baikalelectronics.ru Git - kernel.git/commit
s390/thp: respect page protection in pmd_none() and pmd_present()
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Thu, 25 Oct 2012 15:42:50 +0000 (17:42 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Oct 2012 14:44:23 +0000 (16:44 +0200)
commit9c86dbc1176820172601a14fc11a3f204251192c
treead283c3a90e5196cf924ed68481bb1e0dc49f8b6
parentfa2ebd253563bcbb159ef1ebe82f9fdc9bf56ae9
s390/thp: respect page protection in pmd_none() and pmd_present()

Similar to pte_none() and pte_present(), the pmd functions should also
respect page protection of huge pages, especially PROT_NONE.
This patch also simplifies massage_pgprot_pmd() by adding new definitions
for huge page protection.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h