Swapcache readahead pages are charged before get used, so it unlikely be migrated before charged. remove the incorrect comments.
Signed-off-by: Alex Shi <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] --- mm/memcontrol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 45465c03a8d7..08c267305725 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6941,7 +6941,6 @@ void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) if (page_memcg(newpage)) return; - /* Swapcache readahead pages can get replaced before being charged */ memcg = page_memcg(oldpage); VM_WARN_ON_ONCE_PAGE(!memcg, oldpage); if (!memcg) -- 2.29.GIT

