Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> 于 2020年9月26日周六 20:05写道:
> > + page_add_new_anon_rmap(new_page, new, addr, false);
> > + rss[mm_counter(new_page)]++;
> > + set_pte_at(dst_mm, addr, dst_pte, pte);
>
> Linus's patch had a lru_cache_add_inactive_or_unevictable() here, like
> wp_page_copy()
Yeah, I do think that is needed so that we have the new page on the
LRU and it gets properly evicted under memory pressure.
Oops, yes we definitely need this one.
Thanks,