aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h10
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
462unsigned 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 {
661extern struct mutex zonelists_mutex; 655extern struct mutex zonelists_mutex;
662void build_all_zonelists(void *data); 656void build_all_zonelists(void *data);
663void wakeup_kswapd(struct zone *zone, int order); 657void wakeup_kswapd(struct zone *zone, int order);
664int zone_watermark_ok(struct zone *z, int order, unsigned long mark, 658bool zone_watermark_ok(struct zone *z, int order, unsigned long mark,
659 int classzone_idx, int alloc_flags);
660bool 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);
666enum memmap_context { 662enum memmap_context {
667 MEMMAP_EARLY, 663 MEMMAP_EARLY,