]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Only check for _PAGE_PRESENT in set_pte/pmd functions
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 18 Nov 2013 09:28:12 +0000 (14:58 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 9 Dec 2013 00:40:29 +0000 (11:40 +1100)
commit6b6bdffe7aee94bbe3579c9575dfae27267815e9
treee4c23e5e06ca3fa20318f3a45d3bb9d84f21c6af
parent4370128d5ddd814ef753689146185167550cfad3
powerpc/mm: Only check for _PAGE_PRESENT in set_pte/pmd functions

We want to make sure we don't use these function when updating a pte
or pmd entry that have a valid hpte entry, because these functions
don't invalidate them. So limit the check to _PAGE_PRESENT bit.
Numafault core changes use these functions for updating _PAGE_NUMA bits.
That should be ok because when _PAGE_NUMA is set we can be sure that
hpte entries are not present.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable.c
arch/powerpc/mm/pgtable_64.c