]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/mprotect.c
mm: numa: clear numa hinting information on mprotect
[karo-tx-linux.git] / mm / mprotect.c
index 1291a053b167d7c8a2d7b321cd5b1ee84967f04b..f8421722acb998c488fb45054d06e76b032c6d53 100644 (file)
@@ -54,6 +54,8 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
 
                        if (!prot_numa) {
                                ptent = ptep_modify_prot_start(mm, addr, pte);
+                               if (pte_numa(ptent))
+                                       ptent = pte_mknonnuma(ptent);
                                ptent = pte_modify(ptent, newprot);
                                updated = true;
                        } else {