]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/huge_memory.c
sched/numa: Adjust scan rate in task_numa_placement
[mirror_ubuntu-artful-kernel.git] / mm / huge_memory.c
index 7ab4e32afe12b4798d625c97ec22d14067b89991..1be2a1f95b61918ee414d887f5079ea60dcd12dd 100644 (file)
@@ -1296,8 +1296,10 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
        page_nid = page_to_nid(page);
        last_cpupid = page_cpupid_last(page);
        count_vm_numa_event(NUMA_HINT_FAULTS);
-       if (page_nid == this_nid)
+       if (page_nid == this_nid) {
                count_vm_numa_event(NUMA_HINT_FAULTS_LOCAL);
+               flags |= TNF_FAULT_LOCAL;
+       }
 
        /*
         * Avoid grouping on DSO/COW pages in specific and RO pages