From: Miaohe Lin Date: Fri, 26 Feb 2021 01:18:06 +0000 (-0800) Subject: mm/rmap: correct obsolete comment of page_get_anon_vma() X-Git-Tag: accepted/tizen/unified/20230118.172025~7728^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8a20cf6d19a9506b4a554030bafc1ac204ef31;p=platform%2Fkernel%2Flinux-rpi.git mm/rmap: correct obsolete comment of page_get_anon_vma() Since commit 746b18d421da ("mm: use refcounts for page_lock_anon_vma()"), page_lock_anon_vma() is renamed to page_get_anon_vma() and converted to return a refcount increased anon_vma. But it forgot to change the relevant comment. Link: https://lkml.kernel.org/r/20210203093215.31990-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/rmap.c b/mm/rmap.c index b49e856..b0fc27e 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -462,8 +462,8 @@ void __init anon_vma_init(void) * Getting a lock on a stable anon_vma from a page off the LRU is tricky! * * Since there is no serialization what so ever against page_remove_rmap() - * the best this function can do is return a locked anon_vma that might - * have been relevant to this page. + * the best this function can do is return a refcount increased anon_vma + * that might have been relevant to this page. * * The page might have been remapped to a different anon_vma or the anon_vma * returned may already be freed (and even reused).