aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index c5f4e0567533..8c53b7eff7ba 100644
--- 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
686 } 686 }
687 spin_lock(&inode->i_lock); 687 spin_lock(&inode->i_lock);
688 nfsi->cache_validity &= ~NFS_INO_INVALID_DATA; 688 nfsi->cache_validity &= ~NFS_INO_INVALID_DATA;
689 if (S_ISDIR(inode->i_mode)) { 689 if (S_ISDIR(inode->i_mode))
690 memset(nfsi->cookieverf, 0, sizeof(nfsi->cookieverf)); 690 memset(nfsi->cookieverf, 0, sizeof(nfsi->cookieverf));
691 /* This ensures we revalidate child dentries */
692 nfsi->cache_change_attribute = jiffies;
693 }
694 spin_unlock(&inode->i_lock); 691 spin_unlock(&inode->i_lock);
695 nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE); 692 nfs_inc_stats(inode, NFSIOS_DATAINVALIDATE);
696 dfprintk(PAGECACHE, "NFS: (%s/%Ld) data cache invalidated\n", 693 dfprintk(PAGECACHE, "NFS: (%s/%Ld) data cache invalidated\n",