Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69279
b: refs/heads/master
c: f2c77f4
h: refs/heads/master
i:
  69277: bc415d5
  69275: 67ad148
  69271: 2e965ea
  69263: fb495c9
  69247: 3b9923c
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent 8bb3598 commit 7002894
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d2b2966869142660f46d1e06cf9d15c3debcf77
refs/heads/master: f2c77f4e62a2290ae46b5b0449eb72d72afe691e
15 changes: 8 additions & 7 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,14 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry)
{
if (IS_ROOT(dentry))
return 1;
if (nfs_verify_change_attribute(dir, dentry->d_time))
return 1;
return 0;
if (!nfs_verify_change_attribute(dir, dentry->d_time))
return 0;
/* Revalidate nfsi->cache_change_attribute before we declare a match */
if (nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0)
return 0;
if (!nfs_verify_change_attribute(dir, dentry->d_time))
return 0;
return 1;
}

static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf)
Expand Down Expand Up @@ -742,10 +747,6 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
nfs_inc_stats(dir, NFSIOS_DENTRYREVALIDATE);
inode = dentry->d_inode;

/* Revalidate parent directory attribute cache */
if (nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0)
goto out_zap_parent;

if (!inode) {
if (nfs_neg_need_reval(dir, dentry, nd))
goto out_bad;
Expand Down

0 comments on commit 7002894

Please sign in to comment.