diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-29 17:52:52 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 18:01:35 +0100 |
commit | e05b34539d008ab819388f699b25eae962ba24ac (patch) | |
tree | 23c42e119ed67ffe3cda211f97e49ddfe8d0f012 /mm/ksm.c | |
parent | mm/rmap: Turn page_lock_anon_vma_read() into folio_lock_anon_vma_read() (diff) | |
download | linux-e05b34539d008ab819388f699b25eae962ba24ac.tar.xz linux-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/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)) { |