Skip to content

Commit ce8369b

Browse files
Matthew Wilcoxtorvalds
authored andcommitted
mm: actually clear pmd_numa before invalidating
Commit 67f8746 ("mm: clear pmd_numa before invalidating") cleared the NUMA bit in a copy of the PMD entry, but then wrote back the original Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Acked-by: Mel Gorman <mgorman@suse.de> Reviewed-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0cfb8f0 commit ce8369b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/pgtable-generic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,
195195
pmd_t entry = *pmdp;
196196
if (pmd_numa(entry))
197197
entry = pmd_mknonnuma(entry);
198-
set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(*pmdp));
198+
set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(entry));
199199
flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
200200
}
201201
#endif /* CONFIG_TRANSPARENT_HUGEPAGE */

0 commit comments

Comments
 (0)