aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vmstat.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-07-10 04:43:50 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-10 13:24:13 -0700
commite45b3b6af09dab2a28a7c88b340d0bcdd173e068 (patch)
tree54fe9104271396ceb02985be631debc55b18013a /include/linux/vmstat.h
parent1a91023a9f172f820e292f2c5675fb9f8e2636f0 (diff)
downloadkernel_samsung_aries-e45b3b6af09dab2a28a7c88b340d0bcdd173e068.zip
kernel_samsung_aries-e45b3b6af09dab2a28a7c88b340d0bcdd173e068.tar.gz
kernel_samsung_aries-e45b3b6af09dab2a28a7c88b340d0bcdd173e068.tar.bz2
[PATCH] count_vm_events() fix
Dopey bug. Causes hopelessly-wrong numbers from vmstat(8) and several other counters. 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 'include/linux/vmstat.h')
-rw-r--r--include/linux/vmstat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index 3e0daf5..d673b7b 100644
--- a/include/linux/vmstat.h
+++ b/include/linux/vmstat.h
@@ -57,7 +57,7 @@ static inline void __count_vm_events(enum vm_event_item item, long delta)
static inline void count_vm_events(enum vm_event_item item, long delta)
{
- get_cpu_var(vm_event_states.event[item])++;
+ get_cpu_var(vm_event_states.event[item]) += delta;
put_cpu();
}