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
105105 }
106106 #endif
107107
108+static inline bool folio_test_movable(struct folio *folio)
109+{
110+ return PageMovable(&folio->page);
111+}
112+
108113 #ifdef CONFIG_NUMA_BALANCING
109114 extern int migrate_misplaced_page(struct page *page,
110115 struct vm_area_struct *vma, int node);