mm: mempolicy: Implement change_prot_numa() in terms of change_protection()
authorMel Gorman <mgorman@suse.de>
Thu, 25 Oct 2012 12:16:32 +0000 (14:16 +0200)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:44 +0000 (14:42 +0000)
This patch converts change_prot_numa() to use change_protection(). As
pte_numa and friends check the PTE bits directly it is necessary for
change_protection() to use pmd_mknuma(). Hence the required
modifications to change_protection() are a little clumsy but the
end result is that most of the numa page table helpers are just one or
two instructions.

Signed-off-by: Mel Gorman <mgorman@suse.de>
include/linux/huge_mm.h
include/linux/mm.h
mm/huge_memory.c
mm/mempolicy.c
mm/mprotect.c

Simple merge
Simple merge
Simple merge
diff --cc mm/mempolicy.c
Simple merge
diff --cc mm/mprotect.c
Simple merge