1
0
Fork 0

[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>
wifi-calibration
Andrew Morton 2006-07-10 04:43:50 -07:00 committed by Linus Torvalds
parent 1a91023a9f
commit e45b3b6af0
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}