* [PATCH next-akpm] mm/memcg: remove incorrect comments
@ 2020-11-20 9:35 Alex Shi
0 siblings, 0 replies; only message in thread
From: Alex Shi @ 2020-11-20 9:35 UTC (permalink / raw)
Cc: Johannes Weiner, Michal Hocko, Vladimir Davydov, Andrew Morton,
cgroups, linux-mm, linux-kernel
Swapcache readahead pages are charged before get used, so it unlikely be
migrated before charged. remove the incorrect comments.
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: cgroups@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-20 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 9:35 [PATCH next-akpm] mm/memcg: remove incorrect comments Alex Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).