Revert "io_uring: mark io_uring_fops/io_op_defs as __read_mostly"
[linux-2.6-microblaze.git] / lib / percpu_counter.c
index f61689a..00f666d 100644 (file)
@@ -85,7 +85,7 @@ void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
 
        preempt_disable();
        count = __this_cpu_read(*fbc->counters) + amount;
-       if (count >= batch || count <= -batch) {
+       if (abs(count) >= batch) {
                unsigned long flags;
                raw_spin_lock_irqsave(&fbc->lock, flags);
                fbc->count += count;