Re: [PATCH] mm/rmap: Correct obsolete comment of page_get_anon_vma()

2021-02-04 Thread Miaohe Lin
Hi: On 2021/2/4 20:38, Matthew Wilcox wrote: > On Wed, Feb 03, 2021 at 04:32:15AM -0500, Miaohe Lin wrote: >> * 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 pag

Re: [PATCH] mm/rmap: Correct obsolete comment of page_get_anon_vma()

2021-02-04 Thread Matthew Wilcox
On Wed, Feb 03, 2021 at 04:32:15AM -0500, Miaohe Lin wrote: > * 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

[PATCH] mm/rmap: Correct obsolete comment of page_get_anon_vma()

2021-02-03 Thread Miaohe Lin
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. Signed-off-by: Miaohe Lin --- mm/rmap.c | 4 ++-- 1 file changed,