Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e45b3b6a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1a91023a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
}