On Wed, Sep 17, 2025 at 3:14 PM Mateusz Guzik mjguzik@gmail.com wrote:
Given that this is a reliability fix I would forego optimizations of the sort.
Thanks, good catch - I guess I was trying to be too clever. I'll remove the "n" parameter and just do atomic_add_unless(), like btrfs does. That makes sure 0 is never hit by my own code.