From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755621Ab3AGUmX (ORCPT ); Mon, 7 Jan 2013 15:42:23 -0500 Received: from e8.ny.us.ibm.com ([32.97.182.138]:45668 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753226Ab3AGUmW (ORCPT ); Mon, 7 Jan 2013 15:42:22 -0500 Message-ID: <50EB32FB.30802@linux.vnet.ibm.com> Date: Mon, 07 Jan 2013 14:41:31 -0600 From: Seth Jennings User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Andrew Morton , devel@driverdev.osuosl.org, Dan Magenheimer , Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, Rik van Riel , Larry Woodman , linux-mm@kvack.org, Minchan Kim , Mel Gorman , Robert Jennings , Johannes Weiner , Nitin Gupta , Jenifer Hopper Subject: Re: [PATCHv2 5/9] debugfs: add get/set for atomic types References: <1357590280-31535-1-git-send-email-sjenning@linux.vnet.ibm.com> <1357590280-31535-6-git-send-email-sjenning@linux.vnet.ibm.com> <20130107203219.GA19596@kroah.com> In-Reply-To: <20130107203219.GA19596@kroah.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13010720-9360-0000-0000-00000EDF48D1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/07/2013 02:32 PM, Greg Kroah-Hartman wrote: > On Mon, Jan 07, 2013 at 02:24:36PM -0600, Seth Jennings wrote: >> debugfs currently lack the ability to create attributes >> that set/get atomic_t values. > > I hate to ask, but why would you ever want to do such a thing? There are a few atomic_t statistics in zswap that are valuable to have in the debugfs attributes. Rather than have non-atomic mirrors of all of them, as is done in zcache right now (see drivers/staging/ramster/zcache-main.c:131), I thought this to be a cleaner solution. Granted, I personally have no use for the setting part; only the getting part. I only included the setting operations to keep the balance and conform with the rest of the debugfs implementation. Seth