Commit 8b463be3 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Andrew Morton

mm: add folio_test_movable()

This is the folio equivalent of PageMovable() which is needed to
convert mm/migrate.c to folios.

Link: https://lkml.kernel.org/r/20220504182857.4013401-26-willy@infradead.orgSigned-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent a9595b30
...@@ -105,6 +105,11 @@ static inline void __ClearPageMovable(struct page *page) ...@@ -105,6 +105,11 @@ static inline void __ClearPageMovable(struct page *page)
} }
#endif #endif
static inline bool folio_test_movable(struct folio *folio)
{
return PageMovable(&folio->page);
}
#ifdef CONFIG_NUMA_BALANCING #ifdef CONFIG_NUMA_BALANCING
extern int migrate_misplaced_page(struct page *page, extern int migrate_misplaced_page(struct page *page,
struct vm_area_struct *vma, int node); struct vm_area_struct *vma, int node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment