diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e38a84874492..ef4c6cccf958 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -185,15 +185,15 @@ static void renew_lease(const struct nfs_server *server, unsigned long timestamp | |||
185 | spin_unlock(&clp->cl_lock); | 185 | spin_unlock(&clp->cl_lock); |
186 | } | 186 | } |
187 | 187 | ||
188 | static void update_changeattr(struct inode *inode, struct nfs4_change_info *cinfo) | 188 | static void update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo) |
189 | { | 189 | { |
190 | struct nfs_inode *nfsi = NFS_I(inode); | 190 | struct nfs_inode *nfsi = NFS_I(dir); |
191 | 191 | ||
192 | spin_lock(&inode->i_lock); | 192 | spin_lock(&dir->i_lock); |
193 | nfsi->cache_validity |= NFS_INO_INVALID_ATTR; | 193 | nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; |
194 | if (cinfo->before == nfsi->change_attr && cinfo->atomic) | 194 | if (cinfo->before == nfsi->change_attr && cinfo->atomic) |
195 | nfsi->change_attr = cinfo->after; | 195 | nfsi->change_attr = cinfo->after; |
196 | spin_unlock(&inode->i_lock); | 196 | spin_unlock(&dir->i_lock); |
197 | } | 197 | } |
198 | 198 | ||
199 | struct nfs4_opendata { | 199 | struct nfs4_opendata { |