diff options
Diffstat (limited to 'include/linux/mmzone.h')
| -rw-r--r-- | include/linux/mmzone.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 3984c4eb41fd..8d789d732e87 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
| @@ -448,12 +448,6 @@ static inline int zone_is_oom_locked(const struct zone *zone) | |||
| 448 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); | 448 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); |
| 449 | } | 449 | } |
| 450 | 450 | ||
| 451 | #ifdef CONFIG_SMP | ||
| 452 | unsigned long zone_nr_free_pages(struct zone *zone); | ||
| 453 | #else | ||
| 454 | #define zone_nr_free_pages(zone) zone_page_state(zone, NR_FREE_PAGES) | ||
| 455 | #endif /* CONFIG_SMP */ | ||
| 456 | |||
| 457 | /* | 451 | /* |
| 458 | * The "priority" of VM scanning is how much of the queues we will scan in one | 452 | * The "priority" of VM scanning is how much of the queues we will scan in one |
| 459 | * go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the | 453 | * go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the |
| @@ -651,7 +645,9 @@ typedef struct pglist_data { | |||
| 651 | extern struct mutex zonelists_mutex; | 645 | extern struct mutex zonelists_mutex; |
| 652 | void build_all_zonelists(void *data); | 646 | void build_all_zonelists(void *data); |
| 653 | void wakeup_kswapd(struct zone *zone, int order); | 647 | void wakeup_kswapd(struct zone *zone, int order); |
| 654 | int zone_watermark_ok(struct zone *z, int order, unsigned long mark, | 648 | bool zone_watermark_ok(struct zone *z, int order, unsigned long mark, |
| 649 | int classzone_idx, int alloc_flags); | ||
| 650 | bool zone_watermark_ok_safe(struct zone *z, int order, unsigned long mark, | ||
| 655 | int classzone_idx, int alloc_flags); | 651 | int classzone_idx, int alloc_flags); |
| 656 | enum memmap_context { | 652 | enum memmap_context { |
| 657 | MEMMAP_EARLY, | 653 | MEMMAP_EARLY, |
