Commit 90aaca85 authored by Miaohe Lin's avatar Miaohe Lin Committed by Linus Torvalds

mm/rmap: fix obsolete comment in __page_check_anon_rmap()

Commit 21333b2b ("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.

Link: https://lkml.kernel.org/r/20210128110209.50857-1-linmiaohe@huawei.comSigned-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e0af87ff
...@@ -1086,8 +1086,7 @@ static void __page_check_anon_rmap(struct page *page, ...@@ -1086,8 +1086,7 @@ static void __page_check_anon_rmap(struct page *page,
* be set up correctly at this point. * be set up correctly at this point.
* *
* We have exclusion against page_add_anon_rmap because the caller * We have exclusion against page_add_anon_rmap because the caller
* always holds the page locked, except if called from page_dup_rmap, * always holds the page locked.
* in which case the page is already known to be setup.
* *
* We have exclusion against page_add_new_anon_rmap because those pages * We have exclusion against page_add_new_anon_rmap because those pages
* are initially only visible via the pagetables, and the pte is locked * are initially only visible via the pagetables, and the pte is locked
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment