Re: [PATCH v8 10/16] refcount: introduce __refcount_{add|inc}_not_zero_limited
From: Vlastimil Babka
Date: Thu Jan 09 2025 - 09:42:11 EST
On 1/9/25 3:30 AM, Suren Baghdasaryan wrote:
> Introduce functions to increase refcount but with a top limit above which
> they will fail to increase (the limit is inclusive). Setting the limit to
> INT_MAX indicates no limit.
>
> Signed-off-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>
Acked-by: Vlastimil Babka <vbabka@xxxxxxx>