Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69253
b: refs/heads/master
c: 6ecc5e8
h: refs/heads/master
i:
  69251: c0c61c8
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent 21b08d7 commit 17c79c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 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: 7957c1418f4b6c66e28d4ac3c4d7a8c19d526c48
refs/heads/master: 6ecc5e8fcad7ad64d68c098249359831331bd299
10 changes: 3 additions & 7 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,15 +650,11 @@ static int nfs_fsync_dir(struct file *filp, struct dentry *dentry, int datasync)
*/
static int nfs_check_verifier(struct inode *dir, struct dentry *dentry)
{
unsigned long verf;

if (IS_ROOT(dentry))
return 1;
verf = dentry->d_time;
if (nfs_caches_unstable(dir)
|| verf != NFS_I(dir)->cache_change_attribute)
return 0;
return 1;
if (dentry->d_time == NFS_I(dir)->cache_change_attribute)
return 1;
return 0;
}

static inline void nfs_set_verifier(struct dentry * dentry, unsigned long verf)
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ void nfs_end_data_update(struct inode *inode)
nfsi->cache_validity |= NFS_INO_INVALID_DATA;
spin_unlock(&inode->i_lock);
}
nfsi->cache_change_attribute = jiffies;
atomic_dec(&nfsi->data_updates);
}

Expand Down

0 comments on commit 17c79c8

Please sign in to comment.