From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750977AbdIEGpR (ORCPT ); Tue, 5 Sep 2017 02:45:17 -0400 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> User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.