diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-06-30 04:55:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-30 14:25:36 -0400 |
commit | d2c5e30c9a1420902262aa923794d2ae4e0bc391 (patch) | |
tree | b8c42c189c2bc8dd4b6d808ee8ed2b28dbd70ddd /include | |
parent | fd39fc8561be33065306bdac0e30414e1e8ac8e1 (diff) |
[PATCH] zoned vm counters: conversion of nr_bounce to per zone counter
Conversion of nr_bounce to a per zone counter
nr_bounce is only used for proc output. So it could be left as an event
counter. However, the event counters may not be accurate and nr_bounce is
categorizing types of pages in a zone. So we really need this to also be a
per zone counter.
[akpm@osdl.org: bugfix]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mmzone.h | 1 | ||||
-rw-r--r-- | include/linux/vmstat.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index e9d80697f555..2dbeec1d2874 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -56,6 +56,7 @@ enum zone_stat_item { | |||
56 | NR_FILE_DIRTY, | 56 | NR_FILE_DIRTY, |
57 | NR_WRITEBACK, | 57 | NR_WRITEBACK, |
58 | NR_UNSTABLE_NFS, /* NFS unstable pages */ | 58 | NR_UNSTABLE_NFS, /* NFS unstable pages */ |
59 | NR_BOUNCE, | ||
59 | NR_VM_ZONE_STAT_ITEMS }; | 60 | NR_VM_ZONE_STAT_ITEMS }; |
60 | 61 | ||
61 | struct per_cpu_pages { | 62 | struct per_cpu_pages { |
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 9de2a41c885c..5b5b96afc395 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -67,7 +67,6 @@ struct page_state { | |||
67 | unsigned long allocstall; /* direct reclaim calls */ | 67 | unsigned long allocstall; /* direct reclaim calls */ |
68 | 68 | ||
69 | unsigned long pgrotated; /* pages rotated to tail of the LRU */ | 69 | unsigned long pgrotated; /* pages rotated to tail of the LRU */ |
70 | unsigned long nr_bounce; /* pages for bounce buffers */ | ||
71 | }; | 70 | }; |
72 | 71 | ||
73 | extern void get_full_page_state(struct page_state *ret); | 72 | extern void get_full_page_state(struct page_state *ret); |