diff mbox series

[6/9] mm: Remove references to page_add_new_anon_rmap in comments

Message ID 20231211162214.2146080-7-willy@infradead.org (mailing list archive)
State New
Headers show
Series Finish two folio conversions | expand

Commit Message

Matthew Wilcox Dec. 11, 2023, 4:22 p.m. UTC
Refer to folio_add_new_anon_rmap() instead.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 mm/rmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Hildenbrand Dec. 12, 2023, 1:20 p.m. UTC | #1
On 11.12.23 17:22, Matthew Wilcox (Oracle) wrote:
> Refer to folio_add_new_anon_rmap() instead.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> ---
>   mm/rmap.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/mm/rmap.c b/mm/rmap.c
> index de9426ad0f1b..f3d49ec197ef 100644
> --- a/mm/rmap.c
> +++ b/mm/rmap.c
> @@ -1231,9 +1231,9 @@ static void __page_check_anon_rmap(struct folio *folio, struct page *page,
>   	 * We have exclusion against page_add_anon_rmap because the caller
>   	 * always holds the page locked.
>   	 *
> -	 * We have exclusion against page_add_new_anon_rmap because those pages
> +	 * We have exclusion against folio_add_new_anon_rmap because those pages
>   	 * are initially only visible via the pagetables, and the pte is locked
> -	 * over the call to page_add_new_anon_rmap.
> +	 * over the call to folio_add_new_anon_rmap.
>   	 */
>   	VM_BUG_ON_FOLIO(folio_anon_vma(folio)->root != vma->anon_vma->root,
>   			folio);

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/mm/rmap.c b/mm/rmap.c
index de9426ad0f1b..f3d49ec197ef 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1231,9 +1231,9 @@  static void __page_check_anon_rmap(struct folio *folio, struct page *page,
 	 * We have exclusion against page_add_anon_rmap because the caller
 	 * always holds the page locked.
 	 *
-	 * We have exclusion against page_add_new_anon_rmap because those pages
+	 * We have exclusion against folio_add_new_anon_rmap because those pages
 	 * are initially only visible via the pagetables, and the pte is locked
-	 * over the call to page_add_new_anon_rmap.
+	 * over the call to folio_add_new_anon_rmap.
 	 */
 	VM_BUG_ON_FOLIO(folio_anon_vma(folio)->root != vma->anon_vma->root,
 			folio);