summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2021-02-25 17:17:59 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-26 09:41:01 -0800
commit90aaca852ca13a6c962b25964fb6678120f266b1 (patch)
treeff2d55e3d008b9951166e3540abcd76654ca650d /mm/rmap.c
parente0af87ff7afcde2660be44302836d2d5618185af (diff)
downloadlinux-90aaca852ca13a6c962b25964fb6678120f266b1.tar.gz
linux-90aaca852ca13a6c962b25964fb6678120f266b1.tar.bz2
linux-90aaca852ca13a6c962b25964fb6678120f266b1.zip
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. Link: https://lkml.kernel.org/r/20210128110209.50857-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 46fdbf541b8e..c3f6e060d73f 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -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