mm: convert p[te|md]_numa users to p[te|md]_protnone_numa
Convert existing users of pte_numa and friends to the new helper. Note that the kernel is broken after this patch is applied until the other page table modifiers are also altered. This patch layout is to make review easier. Signed-off-by: Mel Gorman <mgorman@suse.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Tested-by: Sasha Levin <sasha.levin@oracle.com> Cc: Dave Jones <davej@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Rik van Riel <riel@redhat.com> Cc: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committato da
Linus Torvalds

parent
e7bb4b6d16
commit
8a0516ed8b
@@ -3124,7 +3124,7 @@ static int handle_pte_fault(struct mm_struct *mm,
|
||||
pte, pmd, flags, entry);
|
||||
}
|
||||
|
||||
if (pte_numa(entry))
|
||||
if (pte_protnone(entry))
|
||||
return do_numa_page(mm, vma, address, entry, pte, pmd);
|
||||
|
||||
ptl = pte_lockptr(mm, pmd);
|
||||
@@ -3202,7 +3202,7 @@ static int __handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
|
||||
if (pmd_trans_splitting(orig_pmd))
|
||||
return 0;
|
||||
|
||||
if (pmd_numa(orig_pmd))
|
||||
if (pmd_protnone(orig_pmd))
|
||||
return do_huge_pmd_numa_page(mm, vma, address,
|
||||
orig_pmd, pmd);
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user