diff options
| author | Mel Gorman <[email protected]> | 2008-04-28 02:12:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-28 08:58:18 -0700 |
| commit | 18ea7e710d2452fa726814a406779188028cf1bf (patch) | |
| tree | dfa439770b4344ade1ad8bd4fe70920ad66ee064 /include/linux | |
| parent | 0e88460da6ab7bb6a7ef83675412ed5b6315d741 (diff) | |
mm: remember what the preferred zone is for zone_statistics
On NUMA, zone_statistics() is used to record events like numa hit, miss and
foreign. It assumes that the first zone in a zonelist is the preferred zone.
When multiple zonelists are replaced by one that is filtered, this is no
longer the case.
This patch records what the preferred zone is rather than assuming the first
zone in the zonelist is it. This simplifies the reading of later patches in
this set.
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Lee Schermerhorn <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Mel Gorman <[email protected]>
Reviewed-by: Christoph Lameter <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/vmstat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 9f1b4b46151e..e726b6d46495 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -174,7 +174,7 @@ static inline unsigned long node_page_state(int node, zone_page_state(&zones[ZONE_MOVABLE], item); } -extern void zone_statistics(struct zonelist *, struct zone *); +extern void zone_statistics(struct zone *, struct zone *); #else |