[PATCH] zoned-vm-counters: remove read_page_state()
authorAndrew Morton <akpm@osdl.org>
Fri, 30 Jun 2006 08:55:43 +0000 (01:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 30 Jun 2006 18:25:36 +0000 (11:25 -0700)
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>
include/linux/vmstat.h
mm/vmstat.c

index 5b5b96afc3953879187d7744c7f68863b4e6762d..5fad1613e7d6f1e2a46edb2b52df21c18df30618 100644 (file)
@@ -70,13 +70,9 @@ struct page_state {
 };
 
 extern void get_full_page_state(struct page_state *ret);
-extern unsigned long read_page_state_offset(unsigned long offset);
 extern void mod_page_state_offset(unsigned long offset, unsigned long delta);
 extern void __mod_page_state_offset(unsigned long offset, unsigned long delta);
 
-#define read_page_state(member) \
-       read_page_state_offset(offsetof(struct page_state, member))
-
 #define mod_page_state(member, delta)  \
        mod_page_state_offset(offsetof(struct page_state, member), (delta))
 
index 25e5ca7c1743a498c04cd940f7146136df6a03f4..06a6d10521982eace9c47c5fa85f90c644de8998 100644 (file)
@@ -52,20 +52,6 @@ void get_full_page_state(struct page_state *ret)
        __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask);
 }
 
-unsigned long read_page_state_offset(unsigned long offset)
-{
-       unsigned long ret = 0;
-       int cpu;
-
-       for_each_online_cpu(cpu) {
-               unsigned long in;
-
-               in = (unsigned long)&per_cpu(page_states, cpu) + offset;
-               ret += *((unsigned long *)in);
-       }
-       return ret;
-}
-
 void __mod_page_state_offset(unsigned long offset, unsigned long delta)
 {
        void *ptr;