diff options
author | Nick Piggin <nickpiggin@yahoo.com.au> | 2006-01-06 03:11:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:26 -0500 |
commit | 9328b8faae922e52073785ed6c1eaa8565648a0e (patch) | |
tree | 065034bc534a4997197d26acf1774725159e4e65 /include/linux/mmzone.h | |
parent | 7756b9e4e321c3c83c7aa5b9532d3e7fd7ddeb4a (diff) |
[PATCH] mm: dma32 zone statistics
Add dma32 to zone statistics. Also attempt to arrange struct page_state a
bit better (visually).
Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 0d1a5981bb94..8d6caa414c4c 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -397,6 +397,7 @@ static inline int is_normal_idx(int idx) | |||
397 | { | 397 | { |
398 | return (idx == ZONE_NORMAL); | 398 | return (idx == ZONE_NORMAL); |
399 | } | 399 | } |
400 | |||
400 | /** | 401 | /** |
401 | * is_highmem - helper function to quickly check if a struct zone is a | 402 | * is_highmem - helper function to quickly check if a struct zone is a |
402 | * highmem zone or not. This is an attempt to keep references | 403 | * highmem zone or not. This is an attempt to keep references |
@@ -413,6 +414,16 @@ static inline int is_normal(struct zone *zone) | |||
413 | return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL; | 414 | return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL; |
414 | } | 415 | } |
415 | 416 | ||
417 | static inline int is_dma32(struct zone *zone) | ||
418 | { | ||
419 | return zone == zone->zone_pgdat->node_zones + ZONE_DMA32; | ||
420 | } | ||
421 | |||
422 | static inline int is_dma(struct zone *zone) | ||
423 | { | ||
424 | return zone == zone->zone_pgdat->node_zones + ZONE_DMA; | ||
425 | } | ||
426 | |||
416 | /* These two functions are used to setup the per zone pages min values */ | 427 | /* These two functions are used to setup the per zone pages min values */ |
417 | struct ctl_table; | 428 | struct ctl_table; |
418 | struct file; | 429 | struct file; |