From: Alex Shi Date: Tue, 15 Dec 2020 03:07:10 +0000 (-0800) Subject: mm/memcg: remove incorrect comment X-Git-Tag: v5.11-rc1~170^2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f41506baa052c95f9a72e17472f3dfceba2a10b;p=thirdparty%2Flinux.git mm/memcg: remove incorrect comment Swapcache readahead pages are charged before being used, so it is unlikely that they will be migrated before charging. Remove the incorrect comment. Link: https://lkml.kernel.org/r/1605864930-49405-1-git-send-email-alex.shi@linux.alibaba.com Signed-off-by: Alex Shi Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 13e3869867dd4..0083b69b5cacb 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6903,7 +6903,6 @@ void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) if (newpage->mem_cgroup) return; - /* Swapcache readahead pages can get replaced before being charged */ memcg = oldpage->mem_cgroup; if (!memcg) return;