diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-29 19:52:52 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 20:01:35 +0300 |
commit | e05b34539d008ab819388f699b25eae962ba24ac (patch) | |
tree | 23c42e119ed67ffe3cda211f97e49ddfe8d0f012 /mm/ksm.c | |
parent | 9595d76942b8714627d670a7e7ae543812c731ae (diff) | |
download | linux-e05b34539d008ab819388f699b25eae962ba24ac.tar.xz |
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/ksm.c')
-rw-r--r-- | mm/ksm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2554,7 +2554,8 @@ void __ksm_exit(struct mm_struct *mm) struct page *ksm_might_need_to_copy(struct page *page, struct vm_area_struct *vma, unsigned long address) { - struct anon_vma *anon_vma = page_anon_vma(page); + struct folio *folio = page_folio(page); + struct anon_vma *anon_vma = folio_anon_vma(folio); struct page *new_page; if (PageKsm(page)) { |