diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-09-28 14:20:33 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:18:49 -0400 |
commit | 6ecc5e8fcad7ad64d68c098249359831331bd299 (patch) | |
tree | a0880db55be695d2975eb2d993d4cc918d0d3d83 /fs/nfs/inode.c | |
parent | 7957c1418f4b6c66e28d4ac3c4d7a8c19d526c48 (diff) | |
download | kernel_samsung_smdk4412-6ecc5e8fcad7ad64d68c098249359831331bd299.zip kernel_samsung_smdk4412-6ecc5e8fcad7ad64d68c098249359831331bd299.tar.gz kernel_samsung_smdk4412-6ecc5e8fcad7ad64d68c098249359831331bd299.tar.bz2 |
NFS: Fix dcache revalidation bugs
We don't need to force a dentry lookup just because we're making changes to
the directory.
Don't update nfsi->cache_change_attribute in nfs_end_data_update: that
overrides the NFSv3/v4 weak consistency checking that tells us our update
was the only one, and that tells us the dcache is still valid.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index ed035a8..cca1ab2 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -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); } |