Skip to contentSkip to conversation

mm/memcg: remove incorrect comments

PATCH Applied Alex Shi 1 participant 1 message Nov 20, 2020

Subsystems (3)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 mm/memcg: remove incorrect comments

Swapcache readahead pages are charged before get used, so it unlikely be migrated before charged. remove the incorrect comments.

---
 mm/memcontrol.c | 1 -
 1 file changed, 1 deletion(-)
mm/memcontrol.c +0 -1
index 45465c03a8d7..08c267305725 100644
@@ -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)
Signature · 1 line
2.29.GIT