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