diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmstat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 3ad909d9600f..f9a7bc89fd10 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -227,9 +227,7 @@ void __inc_zone_state(struct zone *zone, enum zone_stat_item item) | |||
227 | s8 __percpu *p = pcp->vm_stat_diff + item; | 227 | s8 __percpu *p = pcp->vm_stat_diff + item; |
228 | s8 v, t; | 228 | s8 v, t; |
229 | 229 | ||
230 | __this_cpu_inc(*p); | 230 | v = __this_cpu_inc_return(*p); |
231 | |||
232 | v = __this_cpu_read(*p); | ||
233 | t = __this_cpu_read(pcp->stat_threshold); | 231 | t = __this_cpu_read(pcp->stat_threshold); |
234 | if (unlikely(v > t)) { | 232 | if (unlikely(v > t)) { |
235 | s8 overstep = t >> 1; | 233 | s8 overstep = t >> 1; |
@@ -251,9 +249,7 @@ void __dec_zone_state(struct zone *zone, enum zone_stat_item item) | |||
251 | s8 __percpu *p = pcp->vm_stat_diff + item; | 249 | s8 __percpu *p = pcp->vm_stat_diff + item; |
252 | s8 v, t; | 250 | s8 v, t; |
253 | 251 | ||
254 | __this_cpu_dec(*p); | 252 | v = __this_cpu_dec_return(*p); |
255 | |||
256 | v = __this_cpu_read(*p); | ||
257 | t = __this_cpu_read(pcp->stat_threshold); | 253 | t = __this_cpu_read(pcp->stat_threshold); |
258 | if (unlikely(v < - t)) { | 254 | if (unlikely(v < - t)) { |
259 | s8 overstep = t >> 1; | 255 | s8 overstep = t >> 1; |