lkml.org 
[lkml]   [2023]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/rmap: convert __page_check_anon_rmap() to folio
On Fri, Sep 15, 2023 at 06:17:31PM +0800, Yajun Deng wrote:
> @@ -1176,8 +1175,8 @@ static void __page_check_anon_rmap(struct folio *folio, struct page *page,
> */
> VM_BUG_ON_FOLIO(folio_anon_vma(folio)->root != vma->anon_vma->root,
> folio);
> - VM_BUG_ON_PAGE(page_to_pgoff(page) != linear_page_index(vma, address),
> - page);
> + VM_BUG_ON_FOLIO(folio_pgoff(folio) != linear_page_index(vma, address),
> + folio);

No, this is not equivalent. You haven't hit any problems testing it
because you don't have large anonymous folios.

\
 
 \ /
  Last update: 2023-09-15 15:51    [W:0.079 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site