Convert nr_bounce nr_bounce is only used for proc output. Signed-off-by: Christoph Lameter Index: linux-2.6.15-rc5-mm3/include/linux/mmzone.h =================================================================== --- linux-2.6.15-rc5-mm3.orig/include/linux/mmzone.h 2005-12-20 12:59:17.000000000 -0800 +++ linux-2.6.15-rc5-mm3/include/linux/mmzone.h 2005-12-20 13:00:21.000000000 -0800 @@ -53,6 +53,7 @@ enum zone_stat_item { NR_DIRTY, NR_WRITEBACK, NR_UNSTABLE, /* NFS unstable pages */ + NR_BOUNCE, NR_STAT_ITEMS }; #ifdef CONFIG_SMP Index: linux-2.6.15-rc5-mm3/include/linux/page-flags.h =================================================================== --- linux-2.6.15-rc5-mm3.orig/include/linux/page-flags.h 2005-12-20 12:59:17.000000000 -0800 +++ linux-2.6.15-rc5-mm3/include/linux/page-flags.h 2005-12-20 13:00:00.000000000 -0800 @@ -142,7 +142,6 @@ struct page_state { unsigned long allocstall; /* direct reclaim calls */ unsigned long pgrotated; /* pages rotated to tail of the LRU */ - unsigned long nr_bounce; /* pages for bounce buffers */ }; extern void get_page_state(struct page_state *ret); Index: linux-2.6.15-rc5-mm3/mm/highmem.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/mm/highmem.c 2005-12-16 11:44:09.000000000 -0800 +++ linux-2.6.15-rc5-mm3/mm/highmem.c 2005-12-20 13:07:21.000000000 -0800 @@ -330,7 +330,7 @@ static void bounce_end_io(struct bio *bi continue; mempool_free(bvec->bv_page, pool); - dec_page_state(nr_bounce); + dec_zone_page_state(bvec->bv_page, NR_BOUNCE); } bio_endio(bio_orig, bio_orig->bi_size, err); @@ -411,7 +411,7 @@ static void __blk_queue_bounce(request_q to->bv_page = mempool_alloc(pool, q->bounce_gfp); to->bv_len = from->bv_len; to->bv_offset = from->bv_offset; - inc_page_state(nr_bounce); + inc_zone_page_state(to->bv_page, NR_BOUNCE); if (rw == WRITE) { char *vto, *vfrom; Index: linux-2.6.15-rc5-mm3/mm/page_alloc.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/mm/page_alloc.c 2005-12-20 12:59:40.000000000 -0800 +++ linux-2.6.15-rc5-mm3/mm/page_alloc.c 2005-12-20 13:00:48.000000000 -0800 @@ -599,7 +599,7 @@ static int rmqueue_bulk(struct zone *zon char *stat_item_descr[NR_STAT_ITEMS] = { "mapped","pagecache", "slab", "pagetable", "dirty", "writeback", - "unstable" + "unstable","bounce" }; /* @@ -2685,6 +2685,7 @@ static char *vmstat_text[] = { "nr_dirty", "nr_writeback", "nr_unstable", + "nr_bounce", /* Page state */ "pgpgin", @@ -2731,8 +2732,7 @@ static char *vmstat_text[] = { "pageoutrun", "allocstall", - "pgrotated", - "nr_bounce", + "pgrotated" }; static void *vmstat_start(struct seq_file *m, loff_t *pos) Index: linux-2.6.15-rc5-mm3/drivers/base/node.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/drivers/base/node.c 2005-12-20 12:59:17.000000000 -0800 +++ linux-2.6.15-rc5-mm3/drivers/base/node.c 2005-12-20 13:00:00.000000000 -0800 @@ -68,7 +68,8 @@ static ssize_t node_read_meminfo(struct "Node %d Unstable: %8lu kB\n" "Node %d Mapped: %8lu kB\n" "Node %d Pagecache: %8lu kB\n" - "Node %d Slab: %8lu kB\n", + "Node %d Slab: %8lu kB\n" + "Node %d Bounce: %8lu kB\n", nid, K(i.totalram), nid, K(i.freeram), nid, K(i.totalram - i.freeram), @@ -83,7 +84,8 @@ static ssize_t node_read_meminfo(struct nid, K(nr[NR_UNSTABLE]), nid, K(nr[NR_MAPPED]), nid, K(nr[NR_PAGECACHE]), - nid, K(nr[NR_SLAB])); + nid, K(nr[NR_SLAB]), + nid, K(nr[NR_BOUNCE])); n += hugetlb_report_node_meminfo(nid, buf + n); return n; }