diff options
Diffstat (limited to 'mm/internal.h')
| -rw-r--r-- | mm/internal.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/mm/internal.h b/mm/internal.h index 291eb2b6d1d8..f4a7bb02decf 100644 --- a/mm/internal.h +++ b/mm/internal.h | |||
| @@ -444,6 +444,16 @@ static inline void mminit_validate_memmodel_limits(unsigned long *start_pfn, | |||
| 444 | #define NODE_RECLAIM_SOME 0 | 444 | #define NODE_RECLAIM_SOME 0 |
| 445 | #define NODE_RECLAIM_SUCCESS 1 | 445 | #define NODE_RECLAIM_SUCCESS 1 |
| 446 | 446 | ||
| 447 | #ifdef CONFIG_NUMA | ||
| 448 | extern int node_reclaim(struct pglist_data *, gfp_t, unsigned int); | ||
| 449 | #else | ||
| 450 | static inline int node_reclaim(struct pglist_data *pgdat, gfp_t mask, | ||
| 451 | unsigned int order) | ||
| 452 | { | ||
| 453 | return NODE_RECLAIM_NOSCAN; | ||
| 454 | } | ||
| 455 | #endif | ||
| 456 | |||
| 447 | extern int hwpoison_filter(struct page *p); | 457 | extern int hwpoison_filter(struct page *p); |
| 448 | 458 | ||
| 449 | extern u32 hwpoison_filter_dev_major; | 459 | extern u32 hwpoison_filter_dev_major; |
| @@ -480,10 +490,16 @@ unsigned long reclaim_clean_pages_from_list(struct zone *zone, | |||
| 480 | #define ALLOC_OOM ALLOC_NO_WATERMARKS | 490 | #define ALLOC_OOM ALLOC_NO_WATERMARKS |
| 481 | #endif | 491 | #endif |
| 482 | 492 | ||
| 483 | #define ALLOC_HARDER 0x10 /* try to alloc harder */ | 493 | #define ALLOC_HARDER 0x10 /* try to alloc harder */ |
| 484 | #define ALLOC_HIGH 0x20 /* __GFP_HIGH set */ | 494 | #define ALLOC_HIGH 0x20 /* __GFP_HIGH set */ |
| 485 | #define ALLOC_CPUSET 0x40 /* check for correct cpuset */ | 495 | #define ALLOC_CPUSET 0x40 /* check for correct cpuset */ |
| 486 | #define ALLOC_CMA 0x80 /* allow allocations from CMA areas */ | 496 | #define ALLOC_CMA 0x80 /* allow allocations from CMA areas */ |
| 497 | #ifdef CONFIG_ZONE_DMA32 | ||
| 498 | #define ALLOC_NOFRAGMENT 0x100 /* avoid mixing pageblock types */ | ||
| 499 | #else | ||
| 500 | #define ALLOC_NOFRAGMENT 0x0 | ||
| 501 | #endif | ||
| 502 | #define ALLOC_KSWAPD 0x200 /* allow waking of kswapd */ | ||
| 487 | 503 | ||
| 488 | enum ttu_flags; | 504 | enum ttu_flags; |
| 489 | struct tlbflush_unmap_batch; | 505 | struct tlbflush_unmap_batch; |
