[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50EB32FB.30802@linux.vnet.ibm.com>
Date: Mon, 07 Jan 2013 14:41:31 -0600
From: Seth Jennings <sjenning@...ux.vnet.ibm.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: Andrew Morton <akpm@...ux-foundation.org>,
devel@...verdev.osuosl.org,
Dan Magenheimer <dan.magenheimer@...cle.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
linux-kernel@...r.kernel.org, Rik van Riel <riel@...hat.com>,
Larry Woodman <lwoodman@...hat.com>, linux-mm@...ck.org,
Minchan Kim <minchan@...nel.org>, Mel Gorman <mgorman@...e.de>,
Robert Jennings <rcj@...ux.vnet.ibm.com>,
Johannes Weiner <jweiner@...hat.com>,
Nitin Gupta <ngupta@...are.org>,
Jenifer Hopper <jhopper@...ibm.com>
Subject: Re: [PATCHv2 5/9] debugfs: add get/set for atomic types
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists