diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 87a4045580f2..20ea42c45e4a 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -43,6 +43,16 @@ | |||
43 | for (order = 0; order < MAX_ORDER; order++) \ | 43 | for (order = 0; order < MAX_ORDER; order++) \ |
44 | for (type = 0; type < MIGRATE_TYPES; type++) | 44 | for (type = 0; type < MIGRATE_TYPES; type++) |
45 | 45 | ||
46 | extern int page_group_by_mobility_disabled; | ||
47 | |||
48 | static inline int get_pageblock_migratetype(struct page *page) | ||
49 | { | ||
50 | if (unlikely(page_group_by_mobility_disabled)) | ||
51 | return MIGRATE_UNMOVABLE; | ||
52 | |||
53 | return get_pageblock_flags_group(page, PB_migrate, PB_migrate_end); | ||
54 | } | ||
55 | |||
46 | struct free_area { | 56 | struct free_area { |
47 | struct list_head free_list[MIGRATE_TYPES]; | 57 | struct list_head free_list[MIGRATE_TYPES]; |
48 | unsigned long nr_free; | 58 | unsigned long nr_free; |