]> git.baikalelectronics.ru Git - kernel.git/commit
x86: use the pfn from the page when change its attributes
authorArjan van de Ven <arjan@linux.intel.com>
Mon, 4 Feb 2008 15:48:05 +0000 (16:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 4 Feb 2008 15:48:05 +0000 (16:48 +0100)
commit20e47bd1e54ae659b27a5e0b6883de5645d6a083
treefccad0409c38a4cd845c82f407e2e77bd8dbfc47
parenta3784a69de2018f89fd1b792c91480d41b71c6c6
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 <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@tglx.de>
arch/x86/mm/pageattr.c