diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2005-05-01 11:58:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:58:37 -0400 |
commit | edfbe2b0038723e5699ab22695ccd62b5542a5c1 (patch) | |
tree | f1c613d32824f274b0e3daf492e87b0c9051c789 /mm/page_alloc.c | |
parent | 2054606ad6dd6fee559fe790f190b15ed9355237 (diff) |
[PATCH] count bounce buffer pages in vmstat
This is a patch for counting the number of pages for bounce buffers. It's
shown in /proc/vmstat.
Currently, the number of bounce pages are not counted anywhere. So, if
there are many bounce pages, it seems that there are leaked pages. And
it's difficult for a user to imagine the usage of bounce pages. So, it's
meaningful to show # of bouce pages.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 04a35b3d3262..80ce7f2104df 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1897,6 +1897,7 @@ static char *vmstat_text[] = { | |||
1897 | "allocstall", | 1897 | "allocstall", |
1898 | 1898 | ||
1899 | "pgrotated", | 1899 | "pgrotated", |
1900 | "nr_bounce", | ||
1900 | }; | 1901 | }; |
1901 | 1902 | ||
1902 | static void *vmstat_start(struct seq_file *m, loff_t *pos) | 1903 | static void *vmstat_start(struct seq_file *m, loff_t *pos) |