Skip to content

Commit

Permalink
[PATCH] count_vm_events() fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 10, 2006
1 parent 1a91023 commit e45b3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/vmstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit e45b3b6

Please sign in to comment.