projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a91023
)
[PATCH] count_vm_events() fix
author
Andrew Morton
<akpm@osdl.org>
Mon, 10 Jul 2006 11:43:50 +0000
(
04:43
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:13 +0000
(13:24 -0700)
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>
include/linux/vmstat.h
patch
|
blob
|
history
diff --git
a/include/linux/vmstat.h
b/include/linux/vmstat.h
index 3e0daf54133e165aad7bde3adfff94cf659190ad..d673b7b15c34f07dd3d84c97ef00199dc289dd7d 100644
(file)
--- 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();
}