Skip to contentSkip to conversation

mm/rmap: fix obsolete comment in __page_check_anon_rmap()

PATCH Applied Miaohe Lin 1 participant 1 message Jan 28, 2021

Subsystems (2)
lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 mm/rmap: fix obsolete comment in __page_check_anon_rmap()

Commit 21333b2b66b8 ("ksm: no debug in page_dup_rmap()") has reverted page_dup_rmap() to an inline atomic_inc of mapcount. So page_dup_rmap() does not call __page_check_anon_rmap() anymore.

---
 mm/rmap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/rmap.c +1 -2
index 46fdbf541b8e..c3f6e060d73f 100644
@@ -1086,8 +1086,7 @@ static void __page_check_anon_rmap(struct page *page,
 	 * be set up correctly at this point.
 	 *
 	 * We have exclusion against page_add_anon_rmap because the caller
-	 * always holds the page locked, except if called from page_dup_rmap,
-	 * in which case the page is already known to be setup.
+	 * always holds the page locked.
 	 *
 	 * We have exclusion against page_add_new_anon_rmap because those pages
 	 * are initially only visible via the pagetables, and the pte is locked
Signature · 1 line
2.19.1