History

mm: add folio_test_movable()

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

Matthew Wilcox (Oracle) committed 4 years ago

Commit 8b463be1 parent a9595b31 file · +5 −0Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/migrate.h+5−0
@@ -105,6 +105,11 @@ static inline void __ClearPageMovable(struct page *page) · 104 unmodified lines
105}105}
106#endif106#endif
107 107
108static inline bool folio_test_movable(struct folio *folio)
109{
110 return PageMovable(&folio->page);
111}
112
108#ifdef CONFIG_NUMA_BALANCING113#ifdef CONFIG_NUMA_BALANCING
109extern int migrate_misplaced_page(struct page *page,114extern int migrate_misplaced_page(struct page *page,
110 struct vm_area_struct *vma, int node);115 struct vm_area_struct *vma, int node);