Re: Why do fs outside regular namespace clear DCACHE_UNHASHED?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux