powerpc/mm: Fix a WARN_ON() with CONFIG_DEBUG_PAGEALLOC and CONFIG_DEBUG_VM
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 8 Dec 2009 21:08:44 +0000 (21:08 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 18 Dec 2009 03:54:26 +0000 (14:54 +1100)
commit50891457f1001450be61be0861b2b49abdcb5fb9
tree655ba01774854f86665aca52478527e8798fa520
parent030bdc3fd0807b6097a937468859f4b4baf1b950
powerpc/mm: Fix a WARN_ON() with CONFIG_DEBUG_PAGEALLOC and CONFIG_DEBUG_VM

Set need to call __set_pte_at() and not set_pte_at() from __change_page_attr()
since the later will perform checks with CONFIG_DEBUG_VM that aren't suitable
to the way we override an existing PTE. (More specifically, it doesn't let
you write over a present PTE).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable_32.c