linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ray Lee" <ray-lk@madrabbit.org>
To: "Matthew Wilcox" <matthew@wil.cx>
Cc: "rae l" <crquan@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: It's time to hack on dentry_stat?
Date: Wed, 7 May 2008 08:08:09 -0700	[thread overview]
Message-ID: <2c0942db0805070808t663eafffic5e78c9d1ba8bc68@mail.gmail.com> (raw)
In-Reply-To: <20080507145116.GV19219@parisc-linux.org>

On Wed, May 7, 2008 at 7:51 AM, Matthew Wilcox <matthew@wil.cx> 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...

  parent reply	other threads:[~2008-05-07 15:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 14:26 It's time to hack on dentry_stat? rae l
2008-05-07 14:51 ` Matthew Wilcox
2008-05-07 15:06   ` rae l
2008-05-07 15:08   ` Ray Lee [this message]
2008-05-07 15:25     ` Matthew Wilcox
2008-05-07 16:10       ` Ray Lee
2008-05-07 16:32         ` rae l

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c0942db0805070808t663eafffic5e78c9d1ba8bc68@mail.gmail.com \
    --to=ray-lk@madrabbit.org \
    --cc=crquan@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew@wil.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).