From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ray Lee" Subject: Re: It's time to hack on dentry_stat? Date: Wed, 7 May 2008 08:08:09 -0700 Message-ID: <2c0942db0805070808t663eafffic5e78c9d1ba8bc68@mail.gmail.com> References: <91b13c310805070726k7eb1384ex7d557b5dca4b567@mail.gmail.com> <20080507145116.GV19219@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "rae l" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: "Matthew Wilcox" Return-path: Received: from rv-out-0506.google.com ([209.85.198.226]:56073 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757019AbYEGPIJ (ORCPT ); Wed, 7 May 2008 11:08:09 -0400 Received: by rv-out-0506.google.com with SMTP id l9so408547rvb.1 for ; Wed, 07 May 2008 08:08:09 -0700 (PDT) In-Reply-To: <20080507145116.GV19219@parisc-linux.org> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, May 7, 2008 at 7:51 AM, Matthew Wilcox wrote: > On Wed, May 07, 2008 at 10:26:58PM +0800, rae l wrote: > > I have noticed that struct dentry_stat_t dentry_stat is a struct with > > six fields, > > but only 2 of them are used, other 4 have never been used since v2.6.11, > > > > from include/linux/dcache.h: > > > > struct dentry_stat_t { > > int nr_dentry; > > int nr_unused; > > int age_limit; /* age in seconds */ > > int want_pages; /* pages requested by system */ > > int dummy[2]; > > }; > > You have to not break: > > $ cat /proc/sys/fs/dentry-state > 122104 115846 45 0 0 0 One could hardcode the output of the last three (four?) fields, yes? Slightly grotty, but if it comes with a decent memory savings...