Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions

From: Christoph Hellwig
Date: Tue Sep 05 2017 - 02:45:22 EST


On Mon, Sep 04, 2017 at 05:08:29PM +0100, David Howells wrote:
> Which bit are you objecting to? Wanting to use a refcount_t with 1 to
> represent an otherwise-unreferenced object sat in a cache? Or wanting to
> display accurate usage counts when tracing gets and puts of objects?

Primarily the first, but also any feature creap of the refcount_t in
general.