powerpc/pseries: Fix a typo in pSeries_lpar_hpte_insert()
authorDenis Kirjanov <kda@linux-powerpc.org>
Tue, 23 Jul 2013 11:28:03 +0000 (15:28 +0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:42:18 +0000 (14:42 +1000)
commitad92c615975a57c4b206c5c99f77a0bf22b373c4
tree85f254505fd77a8cbdb2229e56b46e183d801770
parentab55d2187da27414f78056810713c92f9a4350c2
powerpc/pseries: Fix a typo in pSeries_lpar_hpte_insert()

Commit 801eb73f45371accc78ca9d6d22d647eeb722c11 introduced
a bug while checking PTE flags. We have to drop the _PAGE_COHERENT flag
when __PAGE_NO_CACHE is set and the cache update policy is not write-through
(i.e. _PAGE_WRITETHRU is not set)

Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
CC: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/lpar.c