diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c index 9898eeb9a21c..823720c43ea9 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -3584,6 +3584,13 @@ int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
3584 | if (!pte_write(pte)) | 3584 | if (!pte_write(pte)) |
3585 | flags |= TNF_NO_GROUP; | 3585 | flags |= TNF_NO_GROUP; |
3586 | 3586 | ||
3587 | /* | ||
3588 | * Flag if the page is shared between multiple address spaces. This | ||
3589 | * is later used when determining whether to group tasks together | ||
3590 | */ | ||
3591 | if (page_mapcount(page) > 1 && (vma->vm_flags & VM_SHARED)) | ||
3592 | flags |= TNF_SHARED; | ||
3593 | |||
3587 | last_cpupid = page_cpupid_last(page); | 3594 | last_cpupid = page_cpupid_last(page); |
3588 | page_nid = page_to_nid(page); | 3595 | page_nid = page_to_nid(page); |
3589 | target_nid = numa_migrate_prep(page, vma, addr, page_nid); | 3596 | target_nid = numa_migrate_prep(page, vma, addr, page_nid); |