diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-09-29 23:15:01 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 23:19:20 +0200 |
commit | 4b841736bc16b320bcdb1e8ece585b3ced9a8811 (patch) | |
tree | c79e4c99393b8ebfd54617f0ffa791dacc443cb5 /fs | |
parent | NFS: Fix the sign of the return value of nfs_save_change_attribute() (diff) | |
download | linux-4b841736bc16b320bcdb1e8ece585b3ced9a8811.tar.xz linux-4b841736bc16b320bcdb1e8ece585b3ced9a8811.zip |
NFS: Fix nfs_verify_change_attribute()
We don't care about whether or not some other process on our client is
changing the directory while we're in nfs_lookup_revalidate(), because the
dcache will take care of ensuring local atomicity.
We can therefore remove the test for nfs_caches_unstable().
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 07df192e23a0..e275a6eb0a7c 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -646,7 +646,7 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) { if (IS_ROOT(dentry)) return 1; - if (dentry->d_time == NFS_I(dir)->cache_change_attribute) + if (nfs_verify_change_attribute(dir, dentry->d_time)) return 1; return 0; } |