summaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 842f9189537b..fba7741533be 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -480,6 +480,8 @@ struct zone {
480 unsigned long compact_cached_free_pfn; 480 unsigned long compact_cached_free_pfn;
481 /* pfn where async and sync compaction migration scanner should start */ 481 /* pfn where async and sync compaction migration scanner should start */
482 unsigned long compact_cached_migrate_pfn[2]; 482 unsigned long compact_cached_migrate_pfn[2];
483 unsigned long compact_init_migrate_pfn;
484 unsigned long compact_init_free_pfn;
483#endif 485#endif
484 486
485#ifdef CONFIG_COMPACTION 487#ifdef CONFIG_COMPACTION
@@ -728,10 +730,6 @@ typedef struct pglist_data {
728 730
729#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) 731#define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn)
730#define node_end_pfn(nid) pgdat_end_pfn(NODE_DATA(nid)) 732#define node_end_pfn(nid) pgdat_end_pfn(NODE_DATA(nid))
731static inline spinlock_t *zone_lru_lock(struct zone *zone)
732{
733 return &zone->zone_pgdat->lru_lock;
734}
735 733
736static inline struct lruvec *node_lruvec(struct pglist_data *pgdat) 734static inline struct lruvec *node_lruvec(struct pglist_data *pgdat)
737{ 735{
@@ -1299,7 +1297,7 @@ void memory_present(int nid, unsigned long start, unsigned long end);
1299 1297
1300/* 1298/*
1301 * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we 1299 * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we
1302 * need to check pfn validility within that MAX_ORDER_NR_PAGES block. 1300 * need to check pfn validity within that MAX_ORDER_NR_PAGES block.
1303 * pfn_valid_within() should be used in this case; we optimise this away 1301 * pfn_valid_within() should be used in this case; we optimise this away
1304 * when we have no holes within a MAX_ORDER_NR_PAGES block. 1302 * when we have no holes within a MAX_ORDER_NR_PAGES block.
1305 */ 1303 */