Skip to content

Commit b7b0400

Browse files
Mel Gormantorvalds
authored andcommitted
mm: numa: mark huge PTEs young when clearing NUMA hinting faults
Base PTEs are marked young when the NUMA hinting information is cleared but the same does not happen for huge pages which this patch addresses. Note that migrated pages are not marked young as the base page migration code does not assume that migrated pages have been referenced. This could be addressed but beyond the scope of this series which is aimed at Dave Chinners shrink workload that is unlikely to be affected by this issue. Signed-off-by: Mel Gorman <mgorman@suse.de> Cc: Dave Chinner <david@fromorbit.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 074c238 commit b7b0400

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/huge_memory.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,7 @@ int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
13581358
BUG_ON(!PageLocked(page));
13591359
was_writable = pmd_write(pmd);
13601360
pmd = pmd_modify(pmd, vma->vm_page_prot);
1361+
pmd = pmd_mkyoung(pmd);
13611362
if (was_writable)
13621363
pmd = pmd_mkwrite(pmd);
13631364
set_pmd_at(mm, haddr, pmdp, pmd);

0 commit comments

Comments
 (0)