aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-06-30 04:55:43 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-30 14:25:36 -0400
commitbab1846a0582f627f5ec22aa2dc5f4f3e82e8176 (patch)
tree79b6f31881f578a4db8a98ed97be4fc0db3f4ac1 /mm
parentc24f21bda88df4574de0a32a2a1558a23adae1b8 (diff)
[PATCH] zoned-vm-counters: remove read_page_state()
No callers. Cc: Christoph Lameter <clameter@engr.sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmstat.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 25e5ca7c1743..06a6d1052198 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -52,20 +52,6 @@ void get_full_page_state(struct page_state *ret)
52 __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask); 52 __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask);
53} 53}
54 54
55unsigned long read_page_state_offset(unsigned long offset)
56{
57 unsigned long ret = 0;
58 int cpu;
59
60 for_each_online_cpu(cpu) {
61 unsigned long in;
62
63 in = (unsigned long)&per_cpu(page_states, cpu) + offset;
64 ret += *((unsigned long *)in);
65 }
66 return ret;
67}
68
69void __mod_page_state_offset(unsigned long offset, unsigned long delta) 55void __mod_page_state_offset(unsigned long offset, unsigned long delta)
70{ 56{
71 void *ptr; 57 void *ptr;