From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Xin Zhao <uszhaoxin@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: Why NFS enforce size limit on readdirplus
Date: Fri, 02 Jun 2006 14:44:55 -0400 [thread overview]
Message-ID: <1149273895.5621.27.camel@lade.trondhjem.org> (raw)
In-Reply-To: <4ae3c140606012254i5fa92953rdd1ea229be9a02f9@mail.gmail.com>
On Fri, 2006-06-02 at 01:54 -0400, Xin Zhao wrote:
> Maybe this question is a little dumb.
>
> I am wondering why in NFS readdirplus can be used only for directories
> of size less than 8*PAGE_SIZE, otherwise, it will switch to use normal
> readdir?
>
> In nfs/inode.c, I noticed the following code:
> if (nfs_server_capable(inode, NFS_CAP_READDIRPLUS) &&
> fattr->size <= NFS_LIMIT_READDIRPLUS)
> set_bit(NFS_INO_ADVISE_RDPLUS, &NFS_FLAGS(inode));
>
> Can someone kindly explain the reason?
Efficiency: READDIRPLUS requires a lookup for each entry. If there are
too many entries, the whole thing gets really really slow...
Cheers,
Trond
prev parent reply other threads:[~2006-06-02 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-02 5:54 Xin Zhao
2006-06-02 18:44 ` Trond Myklebust [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=1149273895.5621.27.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=uszhaoxin@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®