mm: convert page_get_anon_vma() to folio_get_anon_vma()
With all callers now passing in a folio, rename the function and convert all callers. Removes a couple of calls to compound_head() and a reference to page->mapping. Link: https://lkml.kernel.org/r/20220902194653.1739778-55-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
684555aacc
commit
29eea9b5a9
4 changed files with 12 additions and 12 deletions
|
|
@ -163,7 +163,7 @@ static inline void anon_vma_merge(struct vm_area_struct *vma,
|
|||
unlink_anon_vmas(next);
|
||||
}
|
||||
|
||||
struct anon_vma *page_get_anon_vma(struct page *page);
|
||||
struct anon_vma *folio_get_anon_vma(struct folio *folio);
|
||||
|
||||
/* RMAP flags, currently only relevant for some anon rmap operations. */
|
||||
typedef int __bitwise rmap_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue