This is the folio equivalent of PageMovable() which is needed to convert mm/migrate.c to folios.
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -105,6 +105,11 @@ static inline void __ClearPageMovable(struct page *page) · 104 unmodified lines | |||
| 105 | } | 105 | } |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | static inline bool folio_test_movable(struct folio *folio) | ||
| 109 | { | ||
| 110 | return PageMovable(&folio->page); | ||
| 111 | } | ||
| 112 | |||
| 108 | #ifdef CONFIG_NUMA_BALANCING | 113 | #ifdef CONFIG_NUMA_BALANCING |
| 109 | extern int migrate_misplaced_page(struct page *page, | 114 | extern int migrate_misplaced_page(struct page *page, |
| 110 | struct vm_area_struct *vma, int node); | 115 | struct vm_area_struct *vma, int node); |