printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / page-isolation.h
blob73dc2c1841ec13c51b1526279d57134294ca982b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_PAGEISOLATION_H
3 #define __LINUX_PAGEISOLATION_H
5 #ifdef CONFIG_MEMORY_ISOLATION
6 static inline bool is_migrate_isolate_page(struct page *page)
8 return get_pageblock_migratetype(page) == MIGRATE_ISOLATE;
10 static inline bool is_migrate_isolate(int migratetype)
12 return migratetype == MIGRATE_ISOLATE;
14 #else
15 static inline bool is_migrate_isolate_page(struct page *page)
17 return false;
19 static inline bool is_migrate_isolate(int migratetype)
21 return false;
23 #endif
25 #define MEMORY_OFFLINE 0x1
26 #define REPORT_FAILURE 0x2
28 void set_pageblock_migratetype(struct page *page, int migratetype);
30 bool move_freepages_block_isolate(struct zone *zone, struct page *page,
31 int migratetype);
33 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
34 int migratetype, int flags, gfp_t gfp_flags);
36 void undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
37 int migratetype);
39 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
40 int isol_flags);
41 #endif