diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 8d6caa414c4c..c34f4a2c62f8 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -388,6 +388,11 @@ static inline struct zone *next_zone(struct zone *zone) | |||
388 | #define for_each_zone(zone) \ | 388 | #define for_each_zone(zone) \ |
389 | for (zone = pgdat_list->node_zones; zone; zone = next_zone(zone)) | 389 | for (zone = pgdat_list->node_zones; zone; zone = next_zone(zone)) |
390 | 390 | ||
391 | static inline int populated_zone(struct zone *zone) | ||
392 | { | ||
393 | return (!!zone->present_pages); | ||
394 | } | ||
395 | |||
391 | static inline int is_highmem_idx(int idx) | 396 | static inline int is_highmem_idx(int idx) |
392 | { | 397 | { |
393 | return (idx == ZONE_HIGHMEM); | 398 | return (idx == ZONE_HIGHMEM); |