From: Arjan van de Ven Date: Mon, 4 Feb 2008 15:48:05 +0000 (+0100) Subject: x86: use the pfn from the page when change its attributes X-Git-Tag: v2.6.25-rc1~1057^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=626c2c9d065da0cbd9997e112501487958fde690;p=pandora-kernel.git x86: use the pfn from the page when change its attributes When changing the attributes of a pte, we should use the PFN from the existing PTE rather than going through hoops calculating what we think it might have been; this is both fragile and totally unneeded. It also makes it more hairy to call any of these functions on non-direct maps for no good reason whatsover. With this change, __change_page_attr() no longer takes a pfn as argument, which simplifies all the callers. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed