diff options
author | Andrea Arcangeli <[email protected]> | 2018-10-26 15:10:43 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-10-26 16:38:15 -0700 |
commit | 7eef5f97c1f94c7b72520b42d372037e97a81b95 (patch) | |
tree | 817192570c480cb05617fefb0c9ca20069af0240 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7066f0f933a1fd707bb38781866657769cff7efc (diff) |
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/[email protected]
Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Cc: Jerome Glisse <[email protected]>
Cc: Mel Gorman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions