From: Aneesh Kumar K.V Date: Mon, 18 Nov 2013 09:28:12 +0000 (+0530) Subject: powerpc/mm: Only check for _PAGE_PRESENT in set_pte/pmd functions X-Git-Tag: v3.14-rc1~80^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8937ba48dcf62b5cdf7abb93652914af16756f50;p=pandora-kernel.git 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 Acked-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed