mm: numa: Scan pages with elevated page_mapcount
[deliverable/linux.git] / mm / mprotect.c
index 2da33dca613426a817dd500ff48f1180aa0239a7..41e02923fcd906109054b3e9c79f94687e147955 100644 (file)
@@ -69,9 +69,7 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
                                        if (last_nid != this_nid)
                                                all_same_node = false;
 
-                                       /* only check non-shared pages */
-                                       if (!pte_numa(oldpte) &&
-                                           page_mapcount(page) == 1) {
+                                       if (!pte_numa(oldpte)) {
                                                ptent = pte_mknuma(ptent);
                                                updated = true;
                                        }
This page took 0.02827 seconds and 5 git commands to generate.