From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751407AbdBXRHi (ORCPT ); Fri, 24 Feb 2017 12:07:38 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:43092 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdBXRH2 (ORCPT ); Fri, 24 Feb 2017 12:07:28 -0500 Date: Fri, 24 Feb 2017 18:07:26 +0100 From: Peter Zijlstra To: Christoph Hellwig Cc: Al Viro , Linus Torvalds , Chris Mason , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, David Howells , elena.reshetova@intel.com, ishkamiel@gmail.com, dwindsor@gmail.com, gregkh@linuxfoundation.org Subject: Re: [RFC][PATCH 00/10] On inode::i_count and the usage vs reference count issue Message-ID: <20170224170726.GS6515@twins.programming.kicks-ass.net> References: <20170224154329.478276481@infradead.org> <20170224164330.GA25086@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170224164330.GA25086@infradead.org> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 24, 2017 at 08:43:30AM -0800, Christoph Hellwig wrote: > Usage counts are common and useful, so for now they should stay as-is > and if people can came up with a useful primitive for them we can > consider implementing it. > > Trying to shoe-horn everything into refcount_t is a horrible idea. Sure; and like I said that is a perfectly fine option. I just wanted to see how horrible this ended up.