From: Benjamin Herrenschmidt Date: Thu, 22 Jul 2010 22:53:23 +0000 (+1000) Subject: powerpc/mm: Move around testing of _PAGE_PRESENT in hash code X-Git-Tag: v2.6.35~42^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca91e6c09d656c6deb1f2bc5d57186c718106aa5;p=pandora-kernel.git powerpc/mm: Move around testing of _PAGE_PRESENT in hash code Instead of adding _PAGE_PRESENT to the access permission mask in each low level routine independently, we add it once from hash_page(). We also move the preliminary access check (the racy one before the PTE is locked) up so it applies to the huge page case. This duplicates code in __hash_page_huge() which we'll remove in a subsequent patch to fix a race in there. Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed