aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 322e8048463e..57700038e669 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -33,8 +33,16 @@
33 */ 33 */
34#define PAGE_ALLOC_COSTLY_ORDER 3 34#define PAGE_ALLOC_COSTLY_ORDER 3
35 35
36#define MIGRATE_UNMOVABLE 0
37#define MIGRATE_MOVABLE 1
38#define MIGRATE_TYPES 2
39
40#define for_each_migratetype_order(order, type) \
41 for (order = 0; order < MAX_ORDER; order++) \
42 for (type = 0; type < MIGRATE_TYPES; type++)
43
36struct free_area { 44struct free_area {
37 struct list_head free_list; 45 struct list_head free_list[MIGRATE_TYPES];
38 unsigned long nr_free; 46 unsigned long nr_free;
39}; 47};
40 48