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 39c24ebe9cfd..48906629335c 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -458,12 +458,6 @@ static inline int zone_is_oom_locked(const struct zone *zone) | |||
458 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); | 458 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); |
459 | } | 459 | } |
460 | 460 | ||
461 | #ifdef CONFIG_SMP | ||
462 | unsigned long zone_nr_free_pages(struct zone *zone); | ||
463 | #else | ||
464 | #define zone_nr_free_pages(zone) zone_page_state(zone, NR_FREE_PAGES) | ||
465 | #endif /* CONFIG_SMP */ | ||
466 | |||
467 | /* | 461 | /* |
468 | * The "priority" of VM scanning is how much of the queues we will scan in one | 462 | * The "priority" of VM scanning is how much of the queues we will scan in one |
469 | * go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the | 463 | * go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the |
@@ -661,7 +655,9 @@ typedef struct pglist_data { | |||
661 | extern struct mutex zonelists_mutex; | 655 | extern struct mutex zonelists_mutex; |
662 | void build_all_zonelists(void *data); | 656 | void build_all_zonelists(void *data); |
663 | void wakeup_kswapd(struct zone *zone, int order); | 657 | void wakeup_kswapd(struct zone *zone, int order); |
664 | int zone_watermark_ok(struct zone *z, int order, unsigned long mark, | 658 | bool zone_watermark_ok(struct zone *z, int order, unsigned long mark, |
659 | int classzone_idx, int alloc_flags); | ||
660 | bool zone_watermark_ok_safe(struct zone *z, int order, unsigned long mark, | ||
665 | int classzone_idx, int alloc_flags); | 661 | int classzone_idx, int alloc_flags); |
666 | enum memmap_context { | 662 | enum memmap_context { |
667 | MEMMAP_EARLY, | 663 | MEMMAP_EARLY, |