aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2006-06-30 04:55:35 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-30 14:25:34 -0400
commit347ce434d57da80fd5809c0c836f206a50999c26 (patch)
treef730d151be77977f594e5cc083a93bbeb4c602cc /mm/page_alloc.c
parent65ba55f500a37272985d071c9bbb35256a2f7c14 (diff)
[PATCH] zoned vm counters: conversion of nr_pagecache to per zone counter
Currently a single atomic variable is used to establish the size of the page cache in the whole machine. The zoned VM counters have the same method of implementation as the nr_pagecache code but also allow the determination of the pagecache size per zone. Remove the special implementation for nr_pagecache and make it a zoned counter named NR_FILE_PAGES. Updates of the page cache counters are always performed with interrupts off. We can therefore use the __ variant here. Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> 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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 04dd2b01b2b7..8350720f98a8 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2124,16 +2124,11 @@ static int page_alloc_cpu_notify(struct notifier_block *self,
2124 unsigned long action, void *hcpu) 2124 unsigned long action, void *hcpu)
2125{ 2125{
2126 int cpu = (unsigned long)hcpu; 2126 int cpu = (unsigned long)hcpu;
2127 long *count;
2128 unsigned long *src, *dest; 2127 unsigned long *src, *dest;
2129 2128
2130 if (action == CPU_DEAD) { 2129 if (action == CPU_DEAD) {
2131 int i; 2130 int i;
2132 2131
2133 /* Drain local pagecache count. */
2134 count = &per_cpu(nr_pagecache_local, cpu);
2135 atomic_add(*count, &nr_pagecache);
2136 *count = 0;
2137 local_irq_disable(); 2132 local_irq_disable();
2138 __drain_pages(cpu); 2133 __drain_pages(cpu);
2139 2134