[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>
This commit is contained in:
committed by
Linus Torvalds
parent
7756b9e4e3
commit
9328b8faae
@@ -397,6 +397,7 @@ static inline int is_normal_idx(int idx)
|
||||
{
|
||||
return (idx == ZONE_NORMAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* is_highmem - helper function to quickly check if a struct zone is a
|
||||
* highmem zone or not. This is an attempt to keep references
|
||||
@@ -413,6 +414,16 @@ static inline int is_normal(struct zone *zone)
|
||||
return zone == zone->zone_pgdat->node_zones + ZONE_NORMAL;
|
||||
}
|
||||
|
||||
static inline int is_dma32(struct zone *zone)
|
||||
{
|
||||
return zone == zone->zone_pgdat->node_zones + ZONE_DMA32;
|
||||
}
|
||||
|
||||
static inline int is_dma(struct zone *zone)
|
||||
{
|
||||
return zone == zone->zone_pgdat->node_zones + ZONE_DMA;
|
||||
}
|
||||
|
||||
/* These two functions are used to setup the per zone pages min values */
|
||||
struct ctl_table;
|
||||
struct file;
|
||||
|
Reference in New Issue
Block a user