diff options
Diffstat (limited to 'mm/internal.h')
-rw-r--r-- | mm/internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index 8312d4fadf59..96cda4c6ac56 100644 --- a/mm/internal.h +++ b/mm/internal.h | |||
@@ -358,4 +358,18 @@ extern unsigned long vm_mmap_pgoff(struct file *, unsigned long, | |||
358 | extern void set_pageblock_order(void); | 358 | extern void set_pageblock_order(void); |
359 | unsigned long reclaim_clean_pages_from_list(struct zone *zone, | 359 | unsigned long reclaim_clean_pages_from_list(struct zone *zone, |
360 | struct list_head *page_list); | 360 | struct list_head *page_list); |
361 | /* The ALLOC_WMARK bits are used as an index to zone->watermark */ | ||
362 | #define ALLOC_WMARK_MIN WMARK_MIN | ||
363 | #define ALLOC_WMARK_LOW WMARK_LOW | ||
364 | #define ALLOC_WMARK_HIGH WMARK_HIGH | ||
365 | #define ALLOC_NO_WATERMARKS 0x04 /* don't check watermarks at all */ | ||
366 | |||
367 | /* Mask to get the watermark bits */ | ||
368 | #define ALLOC_WMARK_MASK (ALLOC_NO_WATERMARKS-1) | ||
369 | |||
370 | #define ALLOC_HARDER 0x10 /* try to alloc harder */ | ||
371 | #define ALLOC_HIGH 0x20 /* __GFP_HIGH set */ | ||
372 | #define ALLOC_CPUSET 0x40 /* check for correct cpuset */ | ||
373 | #define ALLOC_CMA 0x80 /* allow allocations from CMA areas */ | ||
374 | |||
361 | #endif /* __MM_INTERNAL_H */ | 375 | #endif /* __MM_INTERNAL_H */ |