From: Nick Piggin <npiggin@suse.de>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: Why do fs outside regular namespace clear DCACHE_UNHASHED?
Date: Mon, 1 Jun 2009 13:23:15 +0200 [thread overview]
Message-ID: <20090601112315.GC5018@wotan.suse.de> (raw)
In-Reply-To: <E1M9e1M-0004Ch-J7@pomaz-ex.szeredi.hu>
On Thu, May 28, 2009 at 01:43:40PM +0200, Miklos Szeredi wrote:
> On Thu, 28 May 2009, Nick Piggin wrote:
> > Please humour a relative vfs/procfs newbie... Why do filesystems insist that
> > a dentry must be !DCACHE_UNHASHED in order to work in /proc/pid/fd/? I can't
> > find the code that checks this, and pipefs fds for example _seems_ to work in
> > proc/pid with this patch applied...
>
> I suspect this is more of an optimization: the old code tries not to
> burden the global dentry cache with all the anonymous pipes, sockets,
> etc. since they won't ever be looked up from the cache.
But I also couldn't see that the flag causes the dcache to put the
entry in the hash or not...
next prev parent reply other threads:[~2009-06-01 11:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 7:14 Why do fs outside regular namespace clear DCACHE_UNHASHED? Nick Piggin
2009-05-28 11:43 ` Miklos Szeredi
2009-06-01 11:23 ` Nick Piggin [this message]
2009-06-03 8:06 ` Miklos Szeredi
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=20090601112315.GC5018@wotan.suse.de \
--to=npiggin@suse.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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).