diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/percpu_counter.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c index 1da85bb1bc07..8280a5dd1727 100644 --- a/lib/percpu_counter.c +++ b/lib/percpu_counter.c  | |||
| @@ -82,7 +82,7 @@ void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch) | |||
| 82 | unsigned long flags; | 82 | unsigned long flags; | 
| 83 | raw_spin_lock_irqsave(&fbc->lock, flags); | 83 | raw_spin_lock_irqsave(&fbc->lock, flags); | 
| 84 | fbc->count += count; | 84 | fbc->count += count; | 
| 85 | __this_cpu_sub(*fbc->counters, count); | 85 | __this_cpu_sub(*fbc->counters, count - amount); | 
| 86 | raw_spin_unlock_irqrestore(&fbc->lock, flags); | 86 | raw_spin_unlock_irqrestore(&fbc->lock, flags); | 
| 87 | } else { | 87 | } else { | 
| 88 | this_cpu_add(*fbc->counters, amount); | 88 | this_cpu_add(*fbc->counters, amount); | 
