All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: TR Reardon <thomas_reardon@hotmail.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: getdents and dentry cache
Date: Fri, 31 May 2013 18:10:44 +0100	[thread overview]
Message-ID: <20130531171044.GI25399@ZenIV.linux.org.uk> (raw)
In-Reply-To: <BAY166-W16BE1C8CDCE22CAD7FA02CFD910@phx.gbl>

On Thu, May 30, 2013 at 03:07:06PM -0400, TR Reardon wrote:
> Just looking for a pointer or a brief history that might make clearer to me what is not currently obvious, having exhaustively scanned through this list and kernel source. ?
> 
> For filesystems such as ext2/3/4, getdents() just calls down to the underlying filesystem which in turns calls into the disk pagecache. ?Why is getdents() not instead serviced via dcache?

Er...  Just how would it be serviced via dcache?  dcache granularity is one
entry; getdents() is used to give _all_ entries in directory, present in
dcache or not.  Moreover, how would you get them in the right order, even
if all of them were present in dcache?

      reply	other threads:[~2013-05-31 17:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 19:07 getdents and dentry cache TR Reardon
2013-05-31 17:10 ` Al Viro [this message]

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=20130531171044.GI25399@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=thomas_reardon@hotmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.