Lines Matching refs:batch
76 * Add to a counter while respecting batch size.
85 * can produce values larger than "batch" or even overflows.
93 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
100 if (unlikely(abs(count + amount) >= batch)) {
120 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
127 if (abs(count) >= batch) {
141 * For percpu_counter with a big batch, the devication of its count could
143 * counter's batch could be runtime decreased to get a better accuracy,
292 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch)
298 if (abs(count - rhs) > (batch * num_online_cpus())) {
328 s64 limit, s64 amount, s32 batch)
340 unknown = batch * num_online_cpus();
349 if (abs(count + amount) <= batch &&