diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-02-15 04:24:31 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-02-15 04:24:31 -0500 |
commit | 0a9d59a2461477bd9ed143c01af9df3f8f00fa81 (patch) | |
tree | df997d1cfb0786427a0df1fbd6f0640fa4248cf4 /include/linux/mmzone.h | |
parent | a23ce6da9677d245aa0aadc99f4197030350ab54 (diff) | |
parent | 795abaf1e4e188c4171e3cd3dbb11a9fcacaf505 (diff) |
Merge branch 'master' into for-next
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 52f96d78c0e8..e56f835274c9 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -114,6 +114,7 @@ enum zone_stat_item { | |||
114 | NUMA_LOCAL, /* allocation from local node */ | 114 | NUMA_LOCAL, /* allocation from local node */ |
115 | NUMA_OTHER, /* allocation from other node */ | 115 | NUMA_OTHER, /* allocation from other node */ |
116 | #endif | 116 | #endif |
117 | NR_ANON_TRANSPARENT_HUGEPAGES, | ||
117 | NR_VM_ZONE_STAT_ITEMS }; | 118 | NR_VM_ZONE_STAT_ITEMS }; |
118 | 119 | ||
119 | /* | 120 | /* |
@@ -458,12 +459,6 @@ static inline int zone_is_oom_locked(const struct zone *zone) | |||
458 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); | 459 | return test_bit(ZONE_OOM_LOCKED, &zone->flags); |
459 | } | 460 | } |
460 | 461 | ||
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 | /* | 462 | /* |
468 | * The "priority" of VM scanning is how much of the queues we will scan in one | 463 | * 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 | 464 | * go. A value of 12 for DEF_PRIORITY implies that we will scan 1/4096th of the |
@@ -645,6 +640,7 @@ typedef struct pglist_data { | |||
645 | wait_queue_head_t kswapd_wait; | 640 | wait_queue_head_t kswapd_wait; |
646 | struct task_struct *kswapd; | 641 | struct task_struct *kswapd; |
647 | int kswapd_max_order; | 642 | int kswapd_max_order; |
643 | enum zone_type classzone_idx; | ||
648 | } pg_data_t; | 644 | } pg_data_t; |
649 | 645 | ||
650 | #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) | 646 | #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) |
@@ -660,8 +656,10 @@ typedef struct pglist_data { | |||
660 | 656 | ||
661 | extern struct mutex zonelists_mutex; | 657 | extern struct mutex zonelists_mutex; |
662 | void build_all_zonelists(void *data); | 658 | void build_all_zonelists(void *data); |
663 | void wakeup_kswapd(struct zone *zone, int order); | 659 | void wakeup_kswapd(struct zone *zone, int order, enum zone_type classzone_idx); |
664 | int zone_watermark_ok(struct zone *z, int order, unsigned long mark, | 660 | bool zone_watermark_ok(struct zone *z, int order, unsigned long mark, |
661 | int classzone_idx, int alloc_flags); | ||
662 | bool zone_watermark_ok_safe(struct zone *z, int order, unsigned long mark, | ||
665 | int classzone_idx, int alloc_flags); | 663 | int classzone_idx, int alloc_flags); |
666 | enum memmap_context { | 664 | enum memmap_context { |
667 | MEMMAP_EARLY, | 665 | MEMMAP_EARLY, |