projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
446e534
)
NFS: Don't set cache_change_attribute in nfs_revalidate_mapping
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 30 Sep 2007 19:31:19 +0000
(15:31 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:19:32 +0000
(17:19 -0400)
The attribute revalidation code will already have taken care of resetting
nfsi->cache_change_attribute.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index c5f4e0567533aa648348d73840fb094e6b4242c3..8c53b7eff7ba58fbcc5a80ef9ef42bbb431ad824 100644
(file)
--- a/
fs/nfs/inode.c
+++ b/
fs/nfs/inode.c
@@
-686,11
+686,8
@@
static int nfs_invalidate_mapping_nolock(struct inode *inode, struct address_spa
}
spin_lock(&inode->i_lock);
nfsi->cache_validity &= ~NFS_INO_INVALID_DATA;
- if (S_ISDIR(inode->i_mode))
{
+ if (S_ISDIR(inode->i_mode))
memset(nfsi->cookieverf, 0, sizeof(nfsi->cookieverf));
- /* This ensures we revalidate child dentries */
- nfsi->cache_change_attribute = jiffies;
- }
spin_unlock(&inode->i_lock);
nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE);
dfprintk(PAGECACHE, "NFS: (%s/%Ld) data cache invalidated\n",
This page took
0.026475 seconds
and
5
git commands to generate.