On Mon, 15 Oct 2018 15:52:49 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote: > On Mon, 15 Oct 2018 16:23:11 -0400 Andrea Arcangeli <aarcange@xxxxxxxxxx> wrote: > > > 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. > > migrate_misplaced_transhuge_page() has changed a bit. Is OK, I figured it out :)