diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index cca1ab2922bf..f1f6639f52b5 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -801,6 +801,8 @@ static void nfs_wcc_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
801 | } | 801 | } |
802 | if (timespec_equal(&inode->i_mtime, &fattr->pre_mtime)) { | 802 | if (timespec_equal(&inode->i_mtime, &fattr->pre_mtime)) { |
803 | memcpy(&inode->i_mtime, &fattr->mtime, sizeof(inode->i_mtime)); | 803 | memcpy(&inode->i_mtime, &fattr->mtime, sizeof(inode->i_mtime)); |
804 | if (S_ISDIR(inode->i_mode)) | ||
805 | nfsi->cache_validity |= NFS_INO_INVALID_DATA; | ||
804 | nfsi->cache_change_attribute = now; | 806 | nfsi->cache_change_attribute = now; |
805 | } | 807 | } |
806 | if (inode->i_size == fattr->pre_size && nfsi->npages == 0) { | 808 | if (inode->i_size == fattr->pre_size && nfsi->npages == 0) { |