Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:40324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718AbdIEGpN (ORCPT ); Tue, 5 Sep 2017 02:45:13 -0400 Date: Mon, 4 Sep 2017 23:45:11 -0700 From: Christoph Hellwig To: David Howells Cc: Christoph Hellwig , Kees Cook , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org Subject: Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions Message-ID: <20170905064511.GA25102@infradead.org> References: <20170904153654.GA4145@infradead.org> <150428045304.25051.1778333106306853298.stgit@warthog.procyon.org.uk> <150428046185.25051.3518486828049323804.stgit@warthog.procyon.org.uk> <30458.1504541309@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30458.1504541309@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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.