Re: [PATCH] lib: fix compare_delta parameter order in percpu_counter_tree

From: Mathieu Desnoyers

Date: Mon Mar 16 2026 - 09:06:54 EST


On 2026-03-16 00:28, David CARLIER wrote:
You're right. Here's the simplified version:

Much better. So this covers percpu_counter_tree_approximate_compare_value.

Can we also add coverage for the following affected APIs ?

- percpu_counter_tree_precise_compare_value
- percpu_counter_tree_precise_compare
- percpu_counter_tree_approximate_compare

When comparing between two sets of counters, we end up summing the
the accuracy ranges of the two counters. So in case we ever have an
issue there, it would be good to add coverage of the range limit cases
in the same way.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com