diff options
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r-- | mm/huge_memory.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 7de1bf85f683..3d2783e10596 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -1377,6 +1377,13 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1377 | } | 1377 | } |
1378 | 1378 | ||
1379 | /* | 1379 | /* |
1380 | * The page_table_lock above provides a memory barrier | ||
1381 | * with change_protection_range. | ||
1382 | */ | ||
1383 | if (mm_tlb_flush_pending(mm)) | ||
1384 | flush_tlb_range(vma, haddr, haddr + HPAGE_PMD_SIZE); | ||
1385 | |||
1386 | /* | ||
1380 | * Migrate the THP to the requested node, returns with page unlocked | 1387 | * Migrate the THP to the requested node, returns with page unlocked |
1381 | * and pmd_numa cleared. | 1388 | * and pmd_numa cleared. |
1382 | */ | 1389 | */ |