All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Mike Waychison <Michael.Waychison@Sun.COM>
Cc: linux-nfs <nfs@lists.sourceforge.net>
Subject: Re: [NFS][PATCH] Making sure negative lookup entries don't exist
Date: Sat, 29 Jan 2005 07:32:11 -0500	[thread overview]
Message-ID: <41FB824B.8050601@RedHat.com> (raw)
In-Reply-To: <41FAE1F8.3040307@sun.com>


Mike Waychison wrote:

>>--- linux-2.4.28/fs/nfs/dir.c.orig	2004-08-07 19:26:06.000000000 -0400
>>+++ linux-2.4.28/fs/nfs/dir.c	2005-01-28 13:00:59.402239000 -0500
>>@@ -455,7 +455,11 @@ int nfs_lookup_verify_inode(struct inode
>>  */
>> static inline int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry)
>> {
>>-	if (!nfs_check_verifier(dir, dentry))
>>+	if (IS_ROOT(dentry))
>>+		return 1;
>>    
>>
>
>I don't think this is needed.  Aren't you guaranteed that a root dentry
>will never have ->d_revalidate called?
>  
>
hmm... I guess I didn't realize this...  but it appear your right....

>  
>
>>+	if (__nfs_revalidate_inode(NFS_SERVER(dir), dir))
>>+		return 1;
>>+	if (time_after(NFS_MTIME_UPDATE(dir), dentry->d_time))
>> 		return 1;
>> 	return time_after(jiffies, dentry->d_time + NFS_ATTRTIMEO(dir));
>> }
>>    
>>
>
>Am I missing something? or doesn't nfs_check_verifier do exactly these
>checks already?
>  
>
nfs_check_verifier() calls nfs_revalidate_inode() which checks the 
attribute cache
before doing the getattr, __nfs_revalidate_inode() just does the getattr

steved.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2005-01-29 12:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-28 18:47 [NFS][PATCH] Making sure negative lookup entries don't exist Steve Dickson
2005-01-29  1:08 ` Mike Waychison
2005-01-29 12:32   ` Steve Dickson [this message]
2005-01-29  3:05 ` Trond Myklebust
2005-01-29 12:59   ` Steve Dickson
2005-01-29 19:32     ` Trond Myklebust

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=41FB824B.8050601@RedHat.com \
    --to=steved@redhat.com \
    --cc=Michael.Waychison@Sun.COM \
    --cc=nfs@lists.sourceforge.net \
    /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.