diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2018-10-27 00:10:43 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-27 01:38:15 +0200 |
commit | 7eef5f97c1f94c7b72520b42d372037e97a81b95 (patch) | |
tree | 817192570c480cb05617fefb0c9ca20069af0240 /crypto/md5.c | |
parent | mm: thp: fix mmu_notifier in migrate_misplaced_transhuge_page() (diff) | |
download | linux-7eef5f97c1f94c7b72520b42d372037e97a81b95.tar.xz linux-7eef5f97c1f94c7b72520b42d372037e97a81b95.zip |
mm: thp: relocate flush_cache_range() in migrate_misplaced_transhuge_page()
There should be no cache left by the time we overwrite the old transhuge
pmd with the new one. It's already too late to flush through the virtual
address because we already copied the page data to the new physical
address.
So flush the cache before the data copy.
Also delete the "end" variable to shutoff a "unused variable" warning on
x86 where flush_cache_range() is a noop.
Link: http://lkml.kernel.org/r/20181015202311.7209-1-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/md5.c')
0 files changed, 0 insertions, 0 deletions