diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-29 11:52:52 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 13:01:35 -0400 |
commit | e05b34539d008ab819388f699b25eae962ba24ac (patch) | |
tree | 23c42e119ed67ffe3cda211f97e49ddfe8d0f012 /mm/util.c | |
parent | 9595d76942b8714627d670a7e7ae543812c731ae (diff) | |
download | lwn-e05b34539d008ab819388f699b25eae962ba24ac.tar.gz lwn-e05b34539d008ab819388f699b25eae962ba24ac.zip |
mm: Turn page_anon_vma() into folio_anon_vma()
Move the prototype from mm.h to mm/internal.h and convert all callers
to pass a folio.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/util.c b/mm/util.c index b614f423aaa4..13fc88ac8e70 100644 --- a/mm/util.c +++ b/mm/util.c @@ -679,9 +679,8 @@ bool folio_mapped(struct folio *folio) } EXPORT_SYMBOL(folio_mapped); -struct anon_vma *page_anon_vma(struct page *page) +struct anon_vma *folio_anon_vma(struct folio *folio) { - struct folio *folio = page_folio(page); unsigned long mapping = (unsigned long)folio->mapping; if ((mapping & PAGE_MAPPING_FLAGS) != PAGE_MAPPING_ANON) |