Commit ce8369bcbeeea6dfe24a6c8f60d2fcfce0432830
Committed by
Linus Torvalds
1 parent
0cfb8f0c3e
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
mm: actually clear pmd_numa before invalidating
Commit 67f87463d3a3 ("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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
mm/pgtable-generic.c
... | ... | @@ -195,7 +195,7 @@ |
195 | 195 | pmd_t entry = *pmdp; |
196 | 196 | if (pmd_numa(entry)) |
197 | 197 | 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)); | |
199 | 199 | flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE); |
200 | 200 | } |
201 | 201 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ |