-
- Downloads
mm: mempolicy: Implement change_prot_numa() in terms of change_protection()
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>
Showing
- include/linux/huge_mm.h 2 additions, 1 deletioninclude/linux/huge_mm.h
- include/linux/mm.h 2 additions, 2 deletionsinclude/linux/mm.h
- mm/huge_memory.c 12 additions, 2 deletionsmm/huge_memory.c
- mm/mempolicy.c 13 additions, 124 deletionsmm/mempolicy.c
- mm/mprotect.c 56 additions, 16 deletionsmm/mprotect.c
Loading
Please register or sign in to comment