diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmzone.h | 10 | ||||
-rw-r--r-- | include/linux/vmstat.h | 5 |
2 files changed, 8 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, |
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index eaaea37b3b75..e4cc21cf5870 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -254,6 +254,8 @@ extern void dec_zone_state(struct zone *, enum zone_stat_item); | |||
254 | extern void __dec_zone_state(struct zone *, enum zone_stat_item); | 254 | extern void __dec_zone_state(struct zone *, enum zone_stat_item); |
255 | 255 | ||
256 | void refresh_cpu_vm_stats(int); | 256 | void refresh_cpu_vm_stats(int); |
257 | void reduce_pgdat_percpu_threshold(pg_data_t *pgdat); | ||
258 | void restore_pgdat_percpu_threshold(pg_data_t *pgdat); | ||
257 | #else /* CONFIG_SMP */ | 259 | #else /* CONFIG_SMP */ |
258 | 260 | ||
259 | /* | 261 | /* |
@@ -298,6 +300,9 @@ static inline void __dec_zone_page_state(struct page *page, | |||
298 | #define dec_zone_page_state __dec_zone_page_state | 300 | #define dec_zone_page_state __dec_zone_page_state |
299 | #define mod_zone_page_state __mod_zone_page_state | 301 | #define mod_zone_page_state __mod_zone_page_state |
300 | 302 | ||
303 | static inline void reduce_pgdat_percpu_threshold(pg_data_t *pgdat) { } | ||
304 | static inline void restore_pgdat_percpu_threshold(pg_data_t *pgdat) { } | ||
305 | |||
301 | static inline void refresh_cpu_vm_stats(int cpu) { } | 306 | static inline void refresh_cpu_vm_stats(int cpu) { } |
302 | #endif | 307 | #endif |
303 | 308 | ||